Follow-up 77276ce: Clarify i18n message key/values and div class
authorDerick Alangi <alangiderick@gmail.com>
Tue, 19 Feb 2019 08:59:20 +0000 (09:59 +0100)
committerJforrester <jforrester@wikimedia.org>
Tue, 19 Feb 2019 10:38:21 +0000 (10:38 +0000)
Bug: T150324
Change-Id: I5bbaf2030e07f27d64bf18109f198ff4cc04a7ff

includes/specials/SpecialContributions.php
languages/i18n/en.json
languages/i18n/qqq.json

index 6e0e1c8..3a180db 100644 (file)
@@ -154,11 +154,9 @@ class SpecialContributions extends IncludableSpecialPage {
 
                if ( $this->opts['namespace'] < NS_MAIN ) {
                        $this->getOutput()->wrapWikiMsg(
-                               "<div class=\"mw-invalid-namespace-assoc error\">\n\$1\n</div>",
-                               [
-                                       'namespace-not-associated',
-                                       wfEscapeWikiText( $this->opts['namespace'] ),
-                               ] );
+                               "<div class=\"mw-negative-namespace-not-supported error\">\n\$1\n</div>",
+                               [ 'negative-namespace-not-supported' ]
+                       );
                        $out->addHTML( $this->getForm() );
                        return;
                }
index b0153f0..7416d3f 100644 (file)
        "anoncontribs": "Contributions",
        "contribsub2": "For {{GENDER:$3|$1}} ($2)",
        "contributions-userdoesnotexist": "User account \"$1\" is not registered.",
-       "namespace-not-associated": "Namespace \"$1\" is a negative value that does not have an associated namespace.",
+       "negative-namespace-not-supported": "Namespaces with negative values are not supported.",
        "nocontribs": "No changes were found matching these criteria.",
        "uctop": "current",
        "month": "From month (and earlier):",
index 7815d24..796d436 100644 (file)
        "anoncontribs": "Same as {{msg-mw|mycontris}} but used for non-logged-in users.\n\nSee also:\n* {{msg-mw|Accesskey-pt-anoncontribs}}\n* {{msg-mw|Tooltip-pt-anoncontribs}}\n{{Identical|Contribution}}",
        "contribsub2": "Contributions for \"user\" (links). Parameters:\n* $1 is an IP address or a username, with a link which points to the user page (if registered user).\n* $2 is list of tool links. The list contains a link which has text {{msg-mw|Sp-contributions-talk}}.\n* $3 is a plain text username used for GENDER.\n{{Identical|For $1}}",
        "contributions-userdoesnotexist": "This message is used in [[Special:Contributions]]. It is used to tell the user that the name he searched for doesn't exist.\n\nParameters:\n* $1 - a username\n{{Identical|Userdoesnotexist}}",
-       "namespace-not-associated": "This message is used in [[Special:Contributions]] to tell users that use namespaces with negative value. It doesn't make sense to get associated nameapce(s) for such namespaces as it doesn't exist.",
+       "negative-namespace-not-supported": "This message is used in [[Special:Contributions]] to tell users that use namespaces with negative value. It not supported as associated namespace(s) doesn't exist.",
        "nocontribs": "Used in [[Special:Contributions]] and [[Special:DeletedContributions]].\n\nSee examples: [[Special:Contributions/x]] and [[Special:DeletedContributions/x]].\n\nParameters:\n* $1 - (Unused) the user name",
        "uctop": "This message is used in [[Special:Contributions]]. It is used to show that a particular edit was the last made to a page. Example: 09:57, 11 February 2008 (hist) (diff) Pagenameā€Ž (edit summary) (current)\n{{Identical|Current}}",
        "month": "Used in [[Special:Contributions]] and history pages ([{{fullurl:Sandbox|action=history}} example]), as label for a dropdown box to select a specific month to view the edits made in that month, and the earlier months. See also {{msg-mw|year}}.",