MediaWiki  REL1_20
LanguageLv.php
Go to the documentation of this file.
00001 <?php
00032 class LanguageLv extends Language {
00042         function convertPlural( $count, $forms ) {
00043                 if ( !count( $forms ) ) { return ''; }
00044 
00045                 // @todo FIXME: CLDR defines 3 plural forms instead of 2.  Form for 0 is missing.
00046                 //        http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#lv
00047                 $forms = $this->preConvertPlural( $forms, 2 );
00048 
00049                 return ( ( $count % 10 == 1 ) && ( $count % 100 != 11 ) ) ? $forms[0] : $forms[1];
00050         }
00051 }