From c79043aa01ecfbc2fc37d8e68acaa12c023033fc Mon Sep 17 00:00:00 2001 From: umherirrender Date: Thu, 6 Aug 2015 08:28:14 +0200 Subject: [PATCH] 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 --- includes/api/ApiQueryIWLinks.php | 3 ++- includes/api/i18n/en.json | 3 ++- includes/api/i18n/qqq.json | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/includes/api/ApiQueryIWLinks.php b/includes/api/ApiQueryIWLinks.php index aca3f700c4..82619cc463 100644 --- a/includes/api/ApiQueryIWLinks.php +++ b/includes/api/ApiQueryIWLinks.php @@ -151,7 +151,8 @@ class ApiQueryIWLinks extends ApiQueryBase { 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 ae7a9c6818..a6c78b8e6d 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 $1prefix.", diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json index 95562d8f1d..93b0f01cf1 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}}", -- 2.20.1