MediaWiki  REL1_20
LanguageSma.php
Go to the documentation of this file.
00001 <?php
00029 class LanguageSma extends Language {
00030 
00036         function convertPlural( $count, $forms ) {
00037                 if ( !count( $forms ) ) { return ''; }
00038 
00039                 // plural forms per http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#sma
00040                 $forms = $this->preConvertPlural( $forms, 3 );
00041 
00042                 if ( $count == 1 ) {
00043                         $index = 0;
00044                 } elseif ( $count == 2 ) {
00045                         $index = 1;
00046                 } else {
00047                         $index = 2;
00048                 }
00049                 return $forms[$index];
00050         }
00051 }