MediaWiki  REL1_20
LanguageSk.php
Go to the documentation of this file.
00001 <?php
00029 class LanguageSk extends Language {
00030 
00036         function convertPlural( $count, $forms ) {
00037                 if ( !count( $forms ) ) { return ''; }
00038                 $forms = $this->preConvertPlural( $forms, 3 );
00039 
00040                 if ( $count == 1 ) {
00041                         $index = 0;
00042                 } elseif ( $count == 2 || $count == 3 || $count == 4 ) {
00043                         $index = 1;
00044                 } else {
00045                         $index = 2;
00046                 }
00047                 return $forms[$index];
00048         }
00049 }