Umherirrender has uploaded a new change for review.

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

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

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

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


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/41/229641/1

diff --git a/includes/api/ApiQueryLangBacklinks.php 
b/includes/api/ApiQueryLangBacklinks.php
index 7be18b2..9f77b84 100644
--- a/includes/api/ApiQueryLangBacklinks.php
+++ b/includes/api/ApiQueryLangBacklinks.php
@@ -185,6 +185,7 @@
                                        'lllang',
                                        'lltitle',
                                ),
+                               ApiBase::PARAM_HELP_MSG_PER_VALUE => array(),
                        ),
                        'dir' => array(
                                ApiBase::PARAM_DFLT => 'ascending',
diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json
index ae7a9c6..add93f7 100644
--- a/includes/api/i18n/en.json
+++ b/includes/api/i18n/en.json
@@ -756,7 +756,9 @@
        "apihelp-query+langbacklinks-param-lang": "Language for the language 
link.",
        "apihelp-query+langbacklinks-param-title": "Language link to search 
for. Must be used with $1lang.",
        "apihelp-query+langbacklinks-param-limit": "How many total pages to 
return.",
-       "apihelp-query+langbacklinks-param-prop": "Which properties to 
get:\n;lllang:Adds the language code of the language link.\n;lltitle:Adds the 
title of the language link.",
+       "apihelp-query+langbacklinks-param-prop": "Which properties to get:",
+       "apihelp-query+langbacklinks-paramvalue-prop-lllang": "Adds the 
language code of the language link.",
+       "apihelp-query+langbacklinks-paramvalue-prop-lltitle": "Adds the title 
of the language link.",
        "apihelp-query+langbacklinks-param-dir": "The direction in which to 
list.",
        "apihelp-query+langbacklinks-example-simple": "Get pages linking to 
[[:fr:Test]].",
        "apihelp-query+langbacklinks-example-generator": "Get information about 
pages linking to [[:fr:Test]].",
diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json
index 95562d8..497e8bc 100644
--- a/includes/api/i18n/qqq.json
+++ b/includes/api/i18n/qqq.json
@@ -701,7 +701,9 @@
        "apihelp-query+langbacklinks-param-lang": 
"{{doc-apihelp-param|query+langbacklinks|lang}}",
        "apihelp-query+langbacklinks-param-title": 
"{{doc-apihelp-param|query+langbacklinks|title}}",
        "apihelp-query+langbacklinks-param-limit": 
"{{doc-apihelp-param|query+langbacklinks|limit}}",
-       "apihelp-query+langbacklinks-param-prop": 
"{{doc-apihelp-param|query+langbacklinks|prop}}",
+       "apihelp-query+langbacklinks-param-prop": 
"{{doc-apihelp-param|query+langbacklinks|prop|paramvalues=1}}",
+       "apihelp-query+langbacklinks-paramvalue-prop-lllang": 
"{{doc-apihelp-param|query+langbacklinks|prop|lllang}}",
+       "apihelp-query+langbacklinks-paramvalue-prop-lltitle": 
"{{doc-apihelp-param|query+langbacklinks|prop|lltitle}}",
        "apihelp-query+langbacklinks-param-dir": 
"{{doc-apihelp-param|query+langbacklinks|dir}}",
        "apihelp-query+langbacklinks-example-simple": 
"{{doc-apihelp-example|query+langbacklinks}}",
        "apihelp-query+langbacklinks-example-generator": 
"{{doc-apihelp-example|query+langbacklinks}}",

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

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