Umherirrender has uploaded a new change for review.

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

Change subject: API: Use message-per-value for 
apihelp-query+protectedtitles-param-prop
......................................................................

API: Use message-per-value for apihelp-query+protectedtitles-param-prop

Use message-per-value for message
apihelp-query+protectedtitles-param-prop to allow smaller strings
for translation.
Each prop in a message also will show up a new parameter on the help
page without the adjust of the translation (but than in english instead
of fully skip it).

Change-Id: I432ee402acd38b91c7e3f3da68a3cec20387aa96
---
M includes/api/ApiQueryProtectedTitles.php
M includes/api/i18n/en.json
M includes/api/i18n/qqq.json
3 files changed, 18 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/53/229653/1

diff --git a/includes/api/ApiQueryProtectedTitles.php 
b/includes/api/ApiQueryProtectedTitles.php
index 033310d..5ef2f70 100644
--- a/includes/api/ApiQueryProtectedTitles.php
+++ b/includes/api/ApiQueryProtectedTitles.php
@@ -216,7 +216,8 @@
                                        'parsedcomment',
                                        'expiry',
                                        'level'
-                               )
+                               ),
+                               ApiBase::PARAM_HELP_MSG_PER_VALUE => array(),
                        ),
                        'continue' => array(
                                ApiBase::PARAM_HELP_MSG => 
'api-help-param-continue',
diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json
index ae7a9c6..aaed5cb 100644
--- a/includes/api/i18n/en.json
+++ b/includes/api/i18n/en.json
@@ -830,7 +830,14 @@
        "apihelp-query+protectedtitles-param-limit": "How many total pages to 
return.",
        "apihelp-query+protectedtitles-param-start": "Start listing at this 
protection timestamp.",
        "apihelp-query+protectedtitles-param-end": "Stop listing at this 
protection timestamp.",
-       "apihelp-query+protectedtitles-param-prop": "Which properties to 
get:\n;timestamp:Adds the timestamp of when protection was added.\n;user:Adds 
the user that added the protection.\n;userid:Adds the user ID that added the 
protection.\n;comment:Adds the comment for the protection.\n;parsedcomment:Adds 
the parsed comment for the protection.\n;expiry:Adds the timestamp of when the 
protection will be lifted.\n;level:Adds the protection level.",
+       "apihelp-query+protectedtitles-param-prop": "Which properties to get:",
+       "apihelp-query+protectedtitles-paramvalue-prop-timestamp": "Adds the 
timestamp of when protection was added.",
+       "apihelp-query+protectedtitles-paramvalue-prop-user": "Adds the user 
that added the protection.",
+       "apihelp-query+protectedtitles-paramvalue-prop-userid": "Adds the user 
ID that added the protection.",
+       "apihelp-query+protectedtitles-paramvalue-prop-comment": "Adds the 
comment for the protection.",
+       "apihelp-query+protectedtitles-paramvalue-prop-parsedcomment": "Adds 
the parsed comment for the protection.",
+       "apihelp-query+protectedtitles-paramvalue-prop-expiry": "Adds the 
timestamp of when the protection will be lifted.",
+       "apihelp-query+protectedtitles-paramvalue-prop-level": "Adds the 
protection level.",
        "apihelp-query+protectedtitles-example-simple": "List protected 
titles.",
        "apihelp-query+protectedtitles-example-generator": "Find links to 
protected titles in the main namespace.",
 
diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json
index 95562d8..875c377 100644
--- a/includes/api/i18n/qqq.json
+++ b/includes/api/i18n/qqq.json
@@ -767,7 +767,14 @@
        "apihelp-query+protectedtitles-param-limit": 
"{{doc-apihelp-param|query+protectedtitles|limit}}",
        "apihelp-query+protectedtitles-param-start": 
"{{doc-apihelp-param|query+protectedtitles|start}}",
        "apihelp-query+protectedtitles-param-end": 
"{{doc-apihelp-param|query+protectedtitles|end}}",
-       "apihelp-query+protectedtitles-param-prop": 
"{{doc-apihelp-param|query+protectedtitles|prop}}",
+       "apihelp-query+protectedtitles-param-prop": 
"{{doc-apihelp-param|query+protectedtitles|prop|paramvalues=1}}",
+       "apihelp-query+protectedtitles-paramvalue-prop-timestamp": 
"{{doc-apihelp-paramvalue|query+protectedtitles|prop|timestamp}}",
+       "apihelp-query+protectedtitles-paramvalue-prop-user": 
"{{doc-apihelp-paramvalue|query+protectedtitles|prop|user}}",
+       "apihelp-query+protectedtitles-paramvalue-prop-userid": 
"{{doc-apihelp-paramvalue|query+protectedtitles|prop|userid}}",
+       "apihelp-query+protectedtitles-paramvalue-prop-comment": 
"{{doc-apihelp-paramvalue|query+protectedtitles|prop|comment}}",
+       "apihelp-query+protectedtitles-paramvalue-prop-parsedcomment": 
"{{doc-apihelp-paramvalue|query+protectedtitles|prop|parsedcomment}}",
+       "apihelp-query+protectedtitles-paramvalue-prop-expiry": 
"{{doc-apihelp-paramvalue|query+protectedtitles|prop|expiry}}",
+       "apihelp-query+protectedtitles-paramvalue-prop-level": 
"{{doc-apihelp-paramvalue|query+protectedtitles|prop|level}}",
        "apihelp-query+protectedtitles-example-simple": 
"{{doc-apihelp-example|query+protectedtitles}}",
        "apihelp-query+protectedtitles-example-generator": 
"{{doc-apihelp-example|query+protectedtitles}}",
        "apihelp-query+querypage-description": 
"{{doc-apihelp-description|query+querypage}}",

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

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

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

Reply via email to