Localisation updates from http://translatewiki.net.
[mediawiki.git] / languages / classes / LanguageSma.php
blob72ca98a125d2fd64dabce6bcde4c0169ad118476
1 <?php
2 /**
3 * Southern Sami (Ã…arjelsaemien)
5 * @ingroup Language
6 */
7 class LanguageSma extends Language {
9 /**
10 * @param $count int
11 * @param $forms array
12 * @return string
14 function convertPlural( $count, $forms ) {
15 if ( !count( $forms ) ) { return ''; }
17 // plural forms per http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#sma
18 $forms = $this->preConvertPlural( $forms, 3 );
20 if ( $count == 1 ) {
21 $index = 0;
22 } elseif ( $count == 2 ) {
23 $index = 1;
24 } else {
25 $index = 2;
27 return $forms[$index];