Pasting lines typo in r80025
[lhc/web/wiklou.git] / languages / classes / LanguageRo.php
1 <?php
2 /**
3 * Romanian (Română)
4 *
5 * @ingroup Language
6 */
7 class LanguageRo extends Language {
8 function convertPlural( $count, $forms ) {
9 // Plural rules per
10 // http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#ro
11 if ( !count( $forms ) ) { return ''; }
12
13 $forms = $this->preConvertPlural( $forms, 3 );
14
15 if ( $count == 1 ) {
16 $index = 0;
17 } elseif ( $count == 0 || $count % 100 < 20 ) {
18 $index = 1;
19 } else {
20 $index = 2;
21 }
22 return $forms[$index];
23 }
24 }