LanguageAr Class Reference
[Language]

Arabic (العربية). More...

Inherits Language.

List of all members.

Public Member Functions

 convertPlural ($count, $forms)
 Plural form transformations, needed for some languages.
 normalize ($s)
 Temporary hack for bug 9413: replace Arabic presentation forms with their standard equivalents.


Detailed Description

Arabic (العربية).

Author:
Niklas Laxström

Definition at line 8 of file LanguageAr.php.


Member Function Documentation

LanguageAr::convertPlural ( count,
forms 
)

Plural form transformations, needed for some languages.

For example, there are 3 form of plural in Russian and Polish, depending on "count mod 10". See [[w:Plural]] For English it is pretty simple.

Invoked by putting {{plural:count|wordform1|wordform2}} or {{plural:count|wordform1|wordform2|wordform3}}

Example: {{plural:{{NUMBEROFARTICLES}}|article|articles}}

Parameters:
$count Integer: non-localized number
$forms Array: different plural forms
Returns:
string Correct form of plural for $count in this language

Reimplemented from Language.

Definition at line 9 of file LanguageAr.php.

References Language::preConvertPlural().

LanguageAr::normalize ( s  ) 

Temporary hack for bug 9413: replace Arabic presentation forms with their standard equivalents.

FIXME: This is language-specific for now only to avoid the negative performance impact of enabling it for all languages.

Reimplemented from Language.

Definition at line 36 of file LanguageAr.php.

References $s, $wgFixArabicUnicode, and Language::transformUsingPairFile().


The documentation for this class was generated from the following file:

Generated on Sat Apr 30 22:57:40 2011 for MediaWiki by  doxygen 1.5.9