Fixed user scripts/styles and site scripts/styles - they were totally broken in r7277...
[mediawiki.git] / languages / classes / LanguageRo.php
blobf2d67980105a470b3605e6d3805628f922293c1e
1 <?php
2 /**
4 * @ingroup Language
5 */
6 class LanguageRo extends Language {
7 function convertPlural( $count, $forms ) {
8 // Plural rules per
9 // http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#ro
10 if ( !count( $forms ) ) { return ''; }
12 $forms = $this->preConvertPlural( $forms, 3 );
14 if ( $count == 1 ) {
15 $index = 0;
16 } elseif ( $count == 0 || $count % 100 < 20 ) {
17 $index = 1;
18 } else {
19 $index = 2;
21 return $forms[$index];