diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2012-05-03 13:01:35 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-05-03 13:01:35 +0200 |
commit | d9022f63880ce039446fba8364f68e656b7bf4cb (patch) | |
tree | 16b40fbf17bf7c9ee6f4ead25b16dd192378050a /languages/classes/LanguageRu.php | |
parent | 27cf83d177256813e2e802241085fce5dd0f3fb9 (diff) |
Update to MediaWiki 1.19.0
Diffstat (limited to 'languages/classes/LanguageRu.php')
-rw-r--r-- | languages/classes/LanguageRu.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/languages/classes/LanguageRu.php b/languages/classes/LanguageRu.php index e16761ad..b5371d2e 100644 --- a/languages/classes/LanguageRu.php +++ b/languages/classes/LanguageRu.php @@ -72,8 +72,10 @@ class LanguageRu extends Language { * Examples: * message with number * "Сделано $1 {{PLURAL:$1|изменение|изменения|изменений}}" + * ("$1 change[s] were made) * message without number * "Действие не может быть выполнено по {{PLURAL:$1|следующей причине|следующим причинам}}:" + * ("The action cannot be performed for the following reason[s]") * @param $count int * @param $forms array * @@ -82,7 +84,10 @@ class LanguageRu extends Language { function convertPlural( $count, $forms ) { if ( !count( $forms ) ) { return ''; } - // if no number with word, then use $form[0] for singular and $form[1] for plural or zero + // If the actual number is not mentioned in the expression, then just two forms are enough: + // singular for $count == 1 + // plural for $count != 1 + // For example, "This user belongs to {{PLURAL:$1|one group|several groups}}." if ( count( $forms ) === 2 ) return $count == 1 ? $forms[0] : $forms[1]; // @todo FIXME: CLDR defines 4 plural forms. Form with decimals missing. |