diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-07-28 11:52:48 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-07-28 11:52:48 +0200 |
commit | 222b01f5169f1c7e69762e0e8904c24f78f71882 (patch) | |
tree | 8e932e12546bb991357ec48eb1638d1770be7a35 /languages/classes/LanguageSe.php | |
parent | 00ab76a6b686e98a914afc1975812d2b1aaa7016 (diff) |
update to MediaWiki 1.16.0
Diffstat (limited to 'languages/classes/LanguageSe.php')
-rw-r--r-- | languages/classes/LanguageSe.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/languages/classes/LanguageSe.php b/languages/classes/LanguageSe.php new file mode 100644 index 00000000..aac943d6 --- /dev/null +++ b/languages/classes/LanguageSe.php @@ -0,0 +1,22 @@ +<?php +/** + * + * @ingroup Language + */ +class LanguageSe extends Language { + function convertPlural( $count, $forms ) { + if ( !count($forms) ) { return ''; } + + // plural forms per http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#se + $forms = $this->preConvertPlural( $forms, 3 ); + + if ( $count == 1 ) { + $index = 0; + } elseif( $count == 2 ) { + $index = 1; + } else { + $index = 2; + } + return $forms[$index]; + } +} |