blob: 9dc8a560098f4bda2f54c4dd5a7f0bbac9f7a8b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
/**
* Macedonian (Македонски)
*
* @ingroup Language
*/
class LanguageMk extends Language {
/**
* Plural forms per
* http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#mk
*/
function convertPlural( $count, $forms ) {
if ( !count( $forms ) ) { return ''; }
$forms = $this->preConvertPlural( $forms, 2 );
if ( $count % 10 === 1 && $count % 100 !== 11 ) {
return $forms[0];
} else {
return $forms[1];
}
}
}
|