X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=languages%2Fclasses%2FLanguageAr.php;h=90e37516e8977a915c170188994cea61aa143cbc;hb=900843f7ee9131ebdbe839fafffb70b8e293a8b9;hp=cc6b85c3f7fa0ef69de36ba6e87e9918a5b3c00d;hpb=49df232e1e36c37d09d7674fe5a13d7d5113d861;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/classes/LanguageAr.php b/languages/classes/LanguageAr.php index cc6b85c3f7..90e37516e8 100644 --- a/languages/classes/LanguageAr.php +++ b/languages/classes/LanguageAr.php @@ -30,38 +30,13 @@ class LanguageAr extends Language { /** - * @param $count int - * @param $forms array - * @return string - */ - function convertPlural( $count, $forms ) { - if ( !count( $forms ) ) { return ''; } - $forms = $this->preConvertPlural( $forms, 6 ); - - if ( $count == 0 ) { - $index = 0; - } elseif ( $count == 1 ) { - $index = 1; - } elseif ( $count == 2 ) { - $index = 2; - } elseif ( $count % 100 >= 3 && $count % 100 <= 10 ) { - $index = 3; - } elseif ( $count % 100 >= 11 && $count % 100 <= 99 ) { - $index = 4; - } else { - $index = 5; - } - return $forms[$index]; - } - - /** - * Temporary hack for bug 9413: replace Arabic presentation forms with their + * Temporary hack for T11413: replace Arabic presentation forms with their * standard equivalents. * * @todo FIXME: This is language-specific for now only to avoid the negative * performance impact of enabling it for all languages. * - * @param $s string + * @param string $s * * @return string */