6 * @author Niklas Laxström
8 class LanguageAr
extends Language
{
15 function convertPlural( $count, $forms ) {
16 if ( !count( $forms ) ) { return ''; }
17 $forms = $this->preConvertPlural( $forms, 6 );
21 } elseif ( $count == 1 ) {
23 } elseif ( $count == 2 ) {
25 } elseif ( $count %
100 >= 3 && $count %
100 <= 10 ) {
27 } elseif ( $count %
100 >= 11 && $count %
100 <= 99 ) {
32 return $forms[$index];
36 * Temporary hack for bug 9413: replace Arabic presentation forms with their
37 * standard equivalents.
39 * @todo FIXME: This is language-specific for now only to avoid the negative
40 * performance impact of enabling it for all languages.
46 function normalize( $s ) {
47 global $wgFixArabicUnicode;
48 $s = parent
::normalize( $s );
49 if ( $wgFixArabicUnicode ) {
50 $s = $this->transformUsingPairFile( 'normalize-ar.ser', $s );