X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=languages%2Fclasses%2FLanguageAr.php;h=553ff077cd6fd900a86ebc340e8c00da1a3178ae;hb=31ba2b8d32249cc2be16a2575816df5b2016f874;hp=c88248140fb26632a10d9f702eb8091961defbf3;hpb=289c631947f702d466991cb35b9ca9f80fecdd15;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/classes/LanguageAr.php b/languages/classes/LanguageAr.php index c88248140f..553ff077cd 100644 --- a/languages/classes/LanguageAr.php +++ b/languages/classes/LanguageAr.php @@ -1,28 +1,51 @@ 2 ) { - $index = 2; - } elseif( $count % 100 == 0) { - $index = 3; - } else { - $index = 4; + /** + * Temporary hack for bug 9413: 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 + * + * @return string + */ + function normalize( $s ) { + global $wgFixArabicUnicode; + $s = parent::normalize( $s ); + if ( $wgFixArabicUnicode ) { + $s = $this->transformUsingPairFile( 'normalize-ar.ser', $s ); } - return $forms[$index]; + return $s; } - } - -?> \ No newline at end of file