MediaWiki  REL1_20
LanguageMk.php
Go to the documentation of this file.
00001 <?php
00029 class LanguageMk extends Language {
00039         function convertPlural( $count, $forms ) {
00040                 if ( !count( $forms ) ) { return ''; }
00041                 $forms = $this->preConvertPlural( $forms, 2 );
00042                 // TODO CLDR defines forms[0] for n != 11 and not for n%100 !== 11
00043                 if ( $count % 10 === 1 && $count % 100 !== 11 ) {
00044                         return $forms[0];
00045                 } else {
00046                         return $forms[1];
00047                 }
00048         }
00049 }