MediaWiki
REL1_19
|
00001 <?php 00008 class LanguageSgs extends Language { 00009 00015 function convertPlural( $count, $forms ) { 00016 if ( !count( $forms ) ) { return ''; } 00017 $forms = $this->preConvertPlural( $forms, 4 ); 00018 00019 $count = abs( $count ); 00020 if ( $count == 0 || ( $count % 100 === 0 || ( $count % 100 >= 10 && $count % 100 < 20 ) ) ) { 00021 return $forms[2]; 00022 } elseif ( $count % 10 === 1 ) { 00023 return $forms[0]; 00024 } elseif ( $count % 10 === 2 ) { 00025 return $forms[1]; 00026 } else { 00027 return $forms[3]; 00028 } 00029 } 00030 }