Umherirrender has uploaded a new change for review.

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

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

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

Use message-per-value for message
apihelp-query+iwlinks-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: I1f83d9383d7c22f5469e7c911f0dbcd8a729ac65
---
M includes/api/ApiQueryIWLinks.php
M includes/api/i18n/en.json
M includes/api/i18n/qqq.json
3 files changed, 6 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/39/229639/1

diff --git a/includes/api/ApiQueryIWLinks.php b/includes/api/ApiQueryIWLinks.php
index aca3f70..82619cc 100644
--- a/includes/api/ApiQueryIWLinks.php
+++ b/includes/api/ApiQueryIWLinks.php
@@ -151,7 +151,8 @@
                                ApiBase::PARAM_ISMULTI => true,
                                ApiBase::PARAM_TYPE => array(
                                        'url',
-                               )
+                               ),
+                               ApiBase::PARAM_HELP_MSG_PER_VALUE => array(),
                        ),
                        'prefix' => null,
                        'title' => null,
diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json
index ae7a9c6..a6c78b8 100644
--- a/includes/api/i18n/en.json
+++ b/includes/api/i18n/en.json
@@ -745,7 +745,8 @@
 
        "apihelp-query+iwlinks-description": "Returns all interwiki links from 
the given pages.",
        "apihelp-query+iwlinks-param-url": "Whether to get the full URL (cannot 
be used with $1prop).",
-       "apihelp-query+iwlinks-param-prop": "Which additional properties to get 
for each interlanguage link:\n;url:Adds the full URL.",
+       "apihelp-query+iwlinks-param-prop": "Which additional properties to get 
for each interlanguage link:",
+       "apihelp-query+iwlinks-paramvalue-prop-url": "Adds the full URL.",
        "apihelp-query+iwlinks-param-limit": "How many interwiki links to 
return.",
        "apihelp-query+iwlinks-param-prefix": "Only return interwiki links with 
this prefix.",
        "apihelp-query+iwlinks-param-title": "Interwiki link to search for. 
Must be used with <var>$1prefix</var>.",
diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json
index 95562d8..93b0f01 100644
--- a/includes/api/i18n/qqq.json
+++ b/includes/api/i18n/qqq.json
@@ -691,7 +691,8 @@
        "apihelp-query+iwbacklinks-example-generator": 
"{{doc-apihelp-example|query+iwbacklinks}}",
        "apihelp-query+iwlinks-description": 
"{{doc-apihelp-description|query+iwlinks}}",
        "apihelp-query+iwlinks-param-url": 
"{{doc-apihelp-param|query+iwlinks|url}}",
-       "apihelp-query+iwlinks-param-prop": 
"{{doc-apihelp-param|query+iwlinks|prop}}",
+       "apihelp-query+iwlinks-param-prop": 
"{{doc-apihelp-param|query+iwlinks|prop|paramvalues=1}}",
+       "apihelp-query+iwlinks-paramvalue-prop-url": 
"{{doc-apihelp-paramvalue|query+iwlinks|prop|url}}",
        "apihelp-query+iwlinks-param-limit": 
"{{doc-apihelp-param|query+iwlinks|limit}}",
        "apihelp-query+iwlinks-param-prefix": 
"{{doc-apihelp-param|query+iwlinks|prefix}}",
        "apihelp-query+iwlinks-param-title": 
"{{doc-apihelp-param|query+iwlinks|title}}",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1f83d9383d7c22f5469e7c911f0dbcd8a729ac65
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