Add a couple of comments from my WC
[lhc/web/wiklou.git] / languages / classes / LanguageSma.php
1 <?php
2 /**
3 * Southern Sami (Ã…arjelsaemien)
4 *
5 * @ingroup Language
6 */
7 class LanguageSma extends Language {
8 function convertPlural( $count, $forms ) {
9 if ( !count( $forms ) ) { return ''; }
10
11 // plural forms per http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#sma
12 $forms = $this->preConvertPlural( $forms, 3 );
13
14 if ( $count == 1 ) {
15 $index = 1;
16 } elseif ( $count == 2 ) {
17 $index = 2;
18 } else {
19 $index = 3;
20 }
21 return $forms[$index];
22 }
23 }