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