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