Index: languages/classes/LanguageAr.php
===================================================================
--- languages/classes/LanguageAr.php (revision 51587)
+++ languages/classes/LanguageAr.php (working copy)
@@ -9,18 +9,20 @@
function convertPlural( $count, $forms ) {
if ( !count($forms) ) { return ''; }
- $forms = $this->preConvertPlural( $forms, 5 );
+ $forms = $this->preConvertPlural( $forms, 6 );
- if ( $count == 1 ) {
+ if ( $count == 0 ) {
$index = 0;
+ } elseif ( $count == 1 ) {
+ $index = 1;
} elseif( $count == 2 ) {
- $index = 1;
- } elseif( $count < 11 && $count > 2 ) {
$index = 2;
- } elseif( $count % 100 == 0) {
+ } elseif( $count % 100 >= 3 && $count % 100 <= 10 ) {
$index = 3;
+ } elseif( $count % 100 >= 11 && $count % 100 <= 99 ) {
+ $index = 4;
} else {
- $index = 4;
+ $index = 5;
}
return $forms[$index];
}