X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/mediawiki.git/blobdiff_plain/19e297c21b10b1b8a3acad5e73fc71dcb35db44a..6932310fd58ebef145fa01eb76edf7150284d8ea:/languages/classes/LanguageAr.php diff --git a/languages/classes/LanguageAr.php b/languages/classes/LanguageAr.php index 77c46025..90e37516 100644 --- a/languages/classes/LanguageAr.php +++ b/languages/classes/LanguageAr.php @@ -1,37 +1,44 @@ 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]; - } +/** + * Arabic (العربية) + * + * @ingroup Language + */ +class LanguageAr extends Language { /** - * Temporary hack for bug 9413: replace Arabic presentation forms with their + * Temporary hack for T11413: replace Arabic presentation forms with their * standard equivalents. * - * FIXME: This is language-specific for now only to avoid the negative + * @todo FIXME: This is language-specific for now only to avoid the negative * performance impact of enabling it for all languages. + * + * @param string $s + * + * @return string */ function normalize( $s ) { global $wgFixArabicUnicode;