wiki.techinc.nl/languages/classes/LanguageMg.php
Siebrand Mazeland b3f5c36d67 Partial update of plural forms per http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html
* updating check blacklists in core and Translate
* adding language classes for codes that use singular form for plural as only difference to English plural forms
* adding FIXME for 'be' plurals: MediaWiki definitions differs from CLDR
2009-09-28 08:40:09 +00:00

16 lines
301 B
PHP

<?php
/**
*
* @ingroup Language
*/
class LanguageMg extends Language {
/**
* Use singular form for zero
*/
function convertPlural( $count, $forms ) {
if ( !count($forms) ) { return ''; }
$forms = $this->preConvertPlural( $forms, 2 );
return ($count <= 1) ? $forms[0] : $forms[1];
}
}