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