Umherirrender has uploaded a new change for review.

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

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

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

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


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/44/229644/1

diff --git a/includes/api/ApiQueryLangLinks.php 
b/includes/api/ApiQueryLangLinks.php
index 8f8a17d..25e534e 100644
--- a/includes/api/ApiQueryLangLinks.php
+++ b/includes/api/ApiQueryLangLinks.php
@@ -146,7 +146,8 @@
                                        'url',
                                        'langname',
                                        'autonym',
-                               )
+                               ),
+                               ApiBase::PARAM_HELP_MSG_PER_VALUE => array(),
                        ),
                        'lang' => null,
                        'title' => null,
diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json
index ae7a9c6..1576d56 100644
--- a/includes/api/i18n/en.json
+++ b/includes/api/i18n/en.json
@@ -764,7 +764,10 @@
        "apihelp-query+langlinks-description": "Returns all interlanguage links 
from the given pages.",
        "apihelp-query+langlinks-param-limit": "How many langlinks to return.",
        "apihelp-query+langlinks-param-url": "Whether to get the full URL 
(cannot be used with <var>$1prop</var>).",
-       "apihelp-query+langlinks-param-prop": "Which additional properties to 
get for each interlanguage link:\n;url:Adds the full URL.\n;langname:Adds the 
localised language name (best effort). Use <var>$1inlanguagecode</var> to 
control the language.\n;autonym:Adds the native language name.",
+       "apihelp-query+langlinks-param-prop": "Which additional properties to 
get for each interlanguage link:",
+       "apihelp-query+langlinks-paramvalue-prop-url": "Adds the full URL.",
+       "apihelp-query+langlinks-paramvalue-prop-langname": "Adds the localised 
language name (best effort). Use <var>$1inlanguagecode</var> to control the 
language.",
+       "apihelp-query+langlinks-paramvalue-prop-autonym": "Adds the native 
language name.",
        "apihelp-query+langlinks-param-lang": "Only return language links with 
this language code.",
        "apihelp-query+langlinks-param-title": "Link to search for. Must be 
used with <var>$1lang</var>.",
        "apihelp-query+langlinks-param-dir": "The direction in which to list.",
diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json
index 95562d8..b173b8d 100644
--- a/includes/api/i18n/qqq.json
+++ b/includes/api/i18n/qqq.json
@@ -708,7 +708,10 @@
        "apihelp-query+langlinks-description": 
"{{doc-apihelp-description|query+langlinks}}",
        "apihelp-query+langlinks-param-limit": 
"{{doc-apihelp-param|query+langlinks|limit}}",
        "apihelp-query+langlinks-param-url": 
"{{doc-apihelp-param|query+langlinks|url}}",
-       "apihelp-query+langlinks-param-prop": 
"{{doc-apihelp-param|query+langlinks|prop}}",
+       "apihelp-query+langlinks-param-prop": 
"{{doc-apihelp-param|query+langlinks|prop|paramvalues=1}}",
+       "apihelp-query+langlinks-paramvalue-prop-url": 
"{{doc-apihelp-paramvalue|query+langlinks|prop|url}}",
+       "apihelp-query+langlinks-paramvalue-prop-langname": 
"{{doc-apihelp-paramvalue|query+langlinks|prop|langname}}",
+       "apihelp-query+langlinks-paramvalue-prop-autonym": 
"{{doc-apihelp-paramvalue|query+langlinks|prop|autonym}}",
        "apihelp-query+langlinks-param-lang": 
"{{doc-apihelp-param|query+langlinks|lang}}",
        "apihelp-query+langlinks-param-title": 
"{{doc-apihelp-param|query+langlinks|title}}",
        "apihelp-query+langlinks-param-dir": 
"{{doc-apihelp-param|query+langlinks|dir}}",

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

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