00001 <?php 00006 class LanguageSma extends Language { 00007 function convertPlural( $count, $forms ) { 00008 if ( !count($forms) ) { return ''; } 00009 00010 // plural forms per http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#sma 00011 $forms = $this->preConvertPlural( $forms, 3 ); 00012 00013 if ( $count == 1 ) { 00014 $index = 1; 00015 } elseif( $count == 2 ) { 00016 $index = 2; 00017 } else { 00018 $index = 3; 00019 } 00020 return $forms[$index]; 00021 } 00022 }