Follow up to r109021, corrected the comment, and added a translation from Russian.
authorAmir E. Aharoni <amire80@users.mediawiki.org>
Mon, 16 Jan 2012 10:45:01 +0000 (10:45 +0000)
committerAmir E. Aharoni <amire80@users.mediawiki.org>
Mon, 16 Jan 2012 10:45:01 +0000 (10:45 +0000)
languages/classes/LanguageBe_tarask.php
languages/classes/LanguageRu.php
languages/classes/LanguageSr.php
languages/classes/LanguageUk.php

index d160941..9acc443 100644 (file)
@@ -29,7 +29,7 @@ class LanguageBe_tarask extends Language {
 
                // If the actual number is not mentioned in the expression, then just two forms are enough:
                // singular for $count == 1
-               // plural   for $count != 0
+               // 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];
 
index 1cf40f6..b5371d2 100644 (file)
@@ -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
         *
@@ -84,7 +86,7 @@ class LanguageRu extends Language {
 
                // If the actual number is not mentioned in the expression, then just two forms are enough:
                // singular for $count == 1
-               // plural   for $count != 0
+               // 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];
 
index 86bfd82..2e1fb27 100644 (file)
@@ -240,7 +240,7 @@ class LanguageSr extends LanguageSr_ec {
 
                // If the actual number is not mentioned in the expression, then just two forms are enough:
                // singular for $count == 1
-               // plural   for $count != 0
+               // 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];
index d826796..14e5d27 100644 (file)
@@ -73,7 +73,7 @@ class LanguageUk extends Language {
 
                // If the actual number is not mentioned in the expression, then just two forms are enough:
                // singular for $count == 1
-               // plural   for $count != 0
+               // 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];