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