Inherits Language.
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. | |
commafy ($_) | |
Adds commas to a given number. |
You can contact Alexander Sigachov (alexander.sigachov at Googgle Mail)
Definition at line 9 of file LanguageRu.php.
LanguageRu::commafy | ( | $ | _ | ) |
Adds commas to a given number.
$_ | mixed |
Reimplemented from Language.
Definition at line 99 of file LanguageRu.php.
LanguageRu::convertGrammar | ( | $ | word, | |
$ | case | |||
) |
Grammatical transformations, needed for inflected languages Invoked by putting {{grammar:case|word}} in a message.
$word | string | |
$case | string |
Reimplemented from Language.
Definition at line 12 of file LanguageRu.php.
References $wgGrammarForms.
LanguageRu::convertPlural | ( | $ | count, | |
$ | forms | |||
) |
Plural form transformations.
$forms[0] - singular form (for 1, 21, 31, 41...) $forms[1] - paucal form (for 2, 3, 4, 22, 23, 24, 32, 33, 34...) $forms[2] - plural form (for 0, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 25, 26...)
Examples: message with number "Сделано $1 {{PLURAL:$1|изменение|изменения|изменений}}" message without number "Действие не может быть выполнено по {{PLURAL:$1|следующей причине|следующим причинам}}:"
Reimplemented from Language.
Definition at line 73 of file LanguageRu.php.
References $count, and Language::preConvertPlural().