r109026 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109025‎ | r109026 | r109027 >
Date:10:45, 16 January 2012
Author:amire80
Status:ok
Tags:
Comment:
Follow up to r109021, corrected the comment, and added a translation from Russian.
Modified paths:
  • /trunk/phase3/languages/classes/LanguageBe_tarask.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageRu.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageSr.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageUk.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/classes/LanguageUk.php
@@ -73,7 +73,7 @@
7474
7575 // If the actual number is not mentioned in the expression, then just two forms are enough:
7676 // singular for $count == 1
77 - // plural for $count != 0
 77+ // plural for $count != 1
7878 // For example, "This user belongs to {{PLURAL:$1|one group|several groups}}."
7979 if ( count( $forms ) === 2 ) return $count == 1 ? $forms[0] : $forms[1];
8080
Index: trunk/phase3/languages/classes/LanguageRu.php
@@ -72,8 +72,10 @@
7373 * Examples:
7474 * message with number
7575 * "Сделано $1 {{PLURAL:$1|изменение|изменения|изменений}}"
 76+ * ("$1 change[s] were made)
7677 * message without number
7778 * "Действие не может быть выполнено по {{PLURAL:$1|следующей причине|следующим причинам}}:"
 79+ * ("The action cannot be performed for the following reason[s]")
7880 * @param $count int
7981 * @param $forms array
8082 *
@@ -84,7 +86,7 @@
8587
8688 // If the actual number is not mentioned in the expression, then just two forms are enough:
8789 // singular for $count == 1
88 - // plural for $count != 0
 90+ // plural for $count != 1
8991 // For example, "This user belongs to {{PLURAL:$1|one group|several groups}}."
9092 if ( count( $forms ) === 2 ) return $count == 1 ? $forms[0] : $forms[1];
9193
Index: trunk/phase3/languages/classes/LanguageBe_tarask.php
@@ -29,7 +29,7 @@
3030
3131 // If the actual number is not mentioned in the expression, then just two forms are enough:
3232 // singular for $count == 1
33 - // plural for $count != 0
 33+ // plural for $count != 1
3434 // For example, "This user belongs to {{PLURAL:$1|one group|several groups}}."
3535 if ( count( $forms ) === 2 ) return $count == 1 ? $forms[0] : $forms[1];
3636
Index: trunk/phase3/languages/classes/LanguageSr.php
@@ -240,7 +240,7 @@
241241
242242 // If the actual number is not mentioned in the expression, then just two forms are enough:
243243 // singular for $count == 1
244 - // plural for $count != 0
 244+ // plural for $count != 1
245245 // For example, "This user belongs to {{PLURAL:$1|one group|several groups}}."
246246 if ( count( $forms ) === 2 ) {
247247 return $count == 1 ? $forms[0] : $forms[1];

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r109021Improved the comment about the two-forms plural shortcut.amire8009:46, 16 January 2012

Status & tagging log