MediaWiki  REL1_19
LanguageGd.php
Go to the documentation of this file.
00001 <?php
00009 class LanguageGd extends Language {
00010 
00027         function convertPlural( $count, $forms ) {
00028                 if ( !count( $forms ) ) { return ''; }
00029                 $forms = $this->preConvertPlural( $forms, 6 );
00030 
00031                 $count = abs( $count );
00032                 if ( $count == 1 ) {
00033                         return $forms[0];
00034                 } elseif ( $count == 2 ) {
00035                         return $forms[1];
00036                 } elseif ( $count == 11 ) {
00037                         return $forms[2];
00038                 } elseif ( $count == 12 ) {
00039                         return $forms[3];
00040                 } elseif ( ($count >= 3 && $count <= 10) || ($count >= 13 && $count <= 19) ) {
00041                         return $forms[4];
00042                 } else {
00043                         return $forms[5];
00044                 }
00045         }
00046 }