LanguageHy Class Reference
[Language]

Armenian (Հայերեն). More...

Inherits Language.

List of all members.

Public Member Functions

 convertGrammar ($word, $case)
 Grammatical transformations, needed for inflected languages Invoked by putting {{grammar:case|word}} in a message.
 convertPlural ($count, $forms)
 Plural form transformations, needed for some languages.
 commafy ($_)
 Adds commas to a given number.


Detailed Description

Armenian (Հայերեն).

Author:
Ruben Vardanyan (Me@RubenVardanyan.com)

Definition at line 8 of file LanguageHy.php.


Member Function Documentation

LanguageHy::commafy ( _  ) 

Adds commas to a given number.

Parameters:
$_ mixed
Returns:
string

Reimplemented from Language.

Definition at line 62 of file LanguageHy.php.

LanguageHy::convertGrammar ( word,
case 
)

Grammatical transformations, needed for inflected languages Invoked by putting {{grammar:case|word}} in a message.

Parameters:
$word string
$case string
Returns:
string

Reimplemented from Language.

Definition at line 11 of file LanguageHy.php.

References $wgGrammarForms.

LanguageHy::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 51 of file LanguageHy.php.

References $count, and Language::preConvertPlural().


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

Generated on Sat Sep 5 02:08:40 2009 for MediaWiki by  doxygen 1.5.9