Update plural forms per http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental...
[lhc/web/wiklou.git] / languages / classes / LanguageSma.php
1 <?php
2 /**
3 *
4 * @ingroup Language
5 */
6 class LanguageSma extends Language {
7 function convertPlural( $count, $forms ) {
8 if ( !count($forms) ) { return ''; }
9
10 // plural forms per http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#sma
11 $forms = $this->preConvertPlural( $forms, 3 );
12
13 if ( $count == 1 ) {
14 $index = 1;
15 } elseif( $count == 2 ) {
16 $index = 2;
17 } else {
18 $index = 3;
19 }
20 return $forms[$index];
21 }
22 }