From be2660a841de255bd5227ba42f4878d407083296 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Thu, 6 Aug 2015 08:36:26 +0200 Subject: [PATCH] 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 --- includes/api/ApiQueryLangLinks.php | 3 ++- includes/api/i18n/en.json | 5 ++++- includes/api/i18n/qqq.json | 5 ++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/includes/api/ApiQueryLangLinks.php b/includes/api/ApiQueryLangLinks.php index 8f8a17dede..25e534e100 100644 --- a/includes/api/ApiQueryLangLinks.php +++ b/includes/api/ApiQueryLangLinks.php @@ -146,7 +146,8 @@ class ApiQueryLangLinks extends ApiQueryBase { '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 ae7a9c6818..1576d567ec 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 $1prop).", - "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 $1inlanguagecode 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 $1inlanguagecode 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 $1lang.", "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 95562d8f1d..b173b8dfdf 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}}", -- 2.20.1