MediaWiki  REL1_19
LanguageLv.php
Go to the documentation of this file.
00001 <?php
00002 
00012 class LanguageLv extends Language {
00022         function convertPlural( $count, $forms ) {
00023                 if ( !count( $forms ) ) { return ''; }
00024 
00025                 // @todo FIXME: CLDR defines 3 plural forms instead of 2.  Form for 0 is missing.
00026                 //        http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#lv
00027                 $forms = $this->preConvertPlural( $forms, 2 );
00028 
00029                 return ( ( $count % 10 == 1 ) && ( $count % 100 != 11 ) ) ? $forms[0] : $forms[1];
00030         }
00031 }