MegaAlex has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/96652


Change subject: Change the syntax and non-one count fake values for {{PLURAL: 
in newmessages*
......................................................................

Change the syntax and non-one count fake values for {{PLURAL: in newmessages*

Change the newmessageslinkplural and newmessagesdifflinkplural syntax and 
non-one count fake values to 999.

Bug: 42497
Change-Id: I2a4b739314e524c3e70184766bb047cf54707c63
---
M includes/Skin.php
M languages/messages/MessagesEn.php
M languages/messages/MessagesQqq.php
3 files changed, 6 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/52/96652/1

diff --git a/includes/Skin.php b/includes/Skin.php
index a71bafc..750f319 100644
--- a/includes/Skin.php
+++ b/includes/Skin.php
@@ -1394,8 +1394,8 @@
                                // Singular if no revision -> diff link will 
show latest change only in any case
                                $plural = false;
                        }
-                       $plural = $plural ? 2 : 1;
-                       // 2 signifies "more than one revision". We don't know 
how many, and even if we did,
+                       $plural = $plural ? 999 : 1;
+                       // 999 signifies "more than one revision". We don't 
know how many, and even if we did,
                        // the number of revisions or authors is not 
necessarily the same as the number of
                        // "messages".
                        $newMessagesLink = Linker::linkKnown(
diff --git a/languages/messages/MessagesEn.php 
b/languages/messages/MessagesEn.php
index 0766cd2..34045e4 100644
--- a/languages/messages/MessagesEn.php
+++ b/languages/messages/MessagesEn.php
@@ -943,8 +943,8 @@
 'newmessagesdifflink'          => 'last change',
 'youhavenewmessagesfromusers'  => 'You have $1 from {{PLURAL:$3|another 
user|$3 users}} ($2).',
 'youhavenewmessagesmanyusers'  => 'You have $1 from many users ($2).',
-'newmessageslinkplural'        => '{{PLURAL:$1|a new message|new messages}}',
-'newmessagesdifflinkplural'    => 'last {{PLURAL:$1|change|changes}}',
+'newmessageslinkplural'        => '{{PLURAL:$1|1=a new message|new messages}}',
+'newmessagesdifflinkplural'    => 'last {{PLURAL:$1|1=change|changes}}',
 'youhavenewmessagesmulti'      => 'You have new messages on $1',
 'newtalkseparator'             => ', ', # do not translate or duplicate 
this message to other languages
 'editsection'                  => 'edit',
diff --git a/languages/messages/MessagesQqq.php 
b/languages/messages/MessagesQqq.php
index 7639c3c..fc23938 100644
--- a/languages/messages/MessagesQqq.php
+++ b/languages/messages/MessagesQqq.php
@@ -857,9 +857,9 @@
 Used as <code>$1</code> in {{msg-mw|Youhavenewmessagesfromusers}}.
 
 Parameters:
-* $1 - 1 or 2:
+* $1 - 1 or 999:
 ** 1 - if there was '''one''' new edit since the last time the user has seen 
their talk page
-** 2 - if there was '''more than one''' new edit since the last time the user 
has seen their talk page
+** 999 - if there was '''more than one''' new edit since the last time the 
user has seen their talk page
 {{Identical|New messages}}",
 'newmessagesdifflinkplural' => 'Parameters:
 * $1 - the number of new edits since the last time the user has seen their 
talk page: it should be used only for correct [[plural]] as in the source text, 
as the exact number is not relevant.

-- 
To view, visit https://gerrit.wikimedia.org/r/96652
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2a4b739314e524c3e70184766bb047cf54707c63
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: MegaAlex <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to