MediaWiki
REL1_19
|
00001 <?php 00007 class LanguageSe extends Language { 00008 00014 function convertPlural( $count, $forms ) { 00015 if ( !count( $forms ) ) { return ''; } 00016 00017 // plural forms per http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#se 00018 $forms = $this->preConvertPlural( $forms, 3 ); 00019 00020 if ( $count == 1 ) { 00021 $index = 0; 00022 } elseif ( $count == 2 ) { 00023 $index = 1; 00024 } else { 00025 $index = 2; 00026 } 00027 return $forms[$index]; 00028 } 00029 }