00001 <?php 00006 class LanguageRo extends Language { 00007 function convertPlural( $count, $forms ) { 00008 // Plural rules per 00009 // http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#ro 00010 if ( !count($forms) ) { return ''; } 00011 00012 $forms = $this->preConvertPlural( $forms, 3 ); 00013 00014 if ( $count == 1 ) { 00015 $index = 0; 00016 } elseif ( $count == 0 || $count % 100 < 20 ) { 00017 $index = 1; 00018 } else { 00019 $index = 2; 00020 } 00021 return $forms[$index]; 00022 } 00023 }