From 3f3904baec3f7663e044a1acdc68c11f047cb712 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Thu, 6 Aug 2015 08:31:53 +0200 Subject: [PATCH] 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 --- includes/api/ApiQueryLangBacklinks.php | 1 + includes/api/i18n/en.json | 4 +++- includes/api/i18n/qqq.json | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiQueryLangBacklinks.php b/includes/api/ApiQueryLangBacklinks.php index 7be18b2ff7..9f77b84a47 100644 --- a/includes/api/ApiQueryLangBacklinks.php +++ b/includes/api/ApiQueryLangBacklinks.php @@ -185,6 +185,7 @@ class ApiQueryLangBacklinks extends ApiQueryGeneratorBase { '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 ae7a9c6818..add93f763b 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 95562d8f1d..497e8bc481 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}}", -- 2.20.1