Localisation updates for core and extension messages from translatewiki.net (2011...
[mediawiki.git] / languages / classes / LanguageSe.php
blob3011bc7f7bbba9f4fc530e25050b30d650be5727
1 <?php
2 /**
3 * Northern Sami (Sámegiella)
5 * @ingroup Language
6 */
7 class LanguageSe extends Language {
8 function convertPlural( $count, $forms ) {
9 if ( !count( $forms ) ) { return ''; }
11 // plural forms per http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#se
12 $forms = $this->preConvertPlural( $forms, 3 );
14 if ( $count == 1 ) {
15 $index = 0;
16 } elseif ( $count == 2 ) {
17 $index = 1;
18 } else {
19 $index = 2;
21 return $forms[$index];