MediaWiki  REL1_19
LanguageSr_ec.php
Go to the documentation of this file.
00001 <?php
00002 
00008 class LanguageSr_ec extends Language {
00009 
00015         function convertPlural( $count, $forms ) {
00016                 if ( !count( $forms ) ) { return ''; }
00017                 $forms = $this->preConvertPlural( $forms, 3 );
00018 
00019                 if ( $count > 10 && floor( ( $count % 100 ) / 10 ) == 1 ) {
00020                         return $forms[2];
00021                 } else {
00022                         switch ( $count % 10 ) {
00023                                 case 1:  return $forms[0];
00024                                 case 2:
00025                                 case 3:
00026                                 case 4:  return $forms[1];
00027                                 default: return $forms[2];
00028                         }
00029                 }
00030         }
00031 }