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