From 62bb28ef167d4d65300ce9e492539abb705b28c3 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Wed, 5 Aug 2015 21:10:52 +0200 Subject: [PATCH] API: Use message-per-value for apihelp-query+allcategories-param-prop Use message-per-value for message apihelp-query+allcategories-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: Ib20310fd6cb67b61c8cd8b2bc0add1e12d630818 --- includes/api/ApiQueryAllCategories.php | 3 ++- includes/api/i18n/en.json | 4 +++- includes/api/i18n/qqq.json | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/includes/api/ApiQueryAllCategories.php b/includes/api/ApiQueryAllCategories.php index cc0b71afbc..0711c90292 100644 --- a/includes/api/ApiQueryAllCategories.php +++ b/includes/api/ApiQueryAllCategories.php @@ -186,7 +186,8 @@ class ApiQueryAllCategories extends ApiQueryGeneratorBase { 'prop' => array( ApiBase::PARAM_TYPE => array( 'size', 'hidden' ), ApiBase::PARAM_DFLT => '', - ApiBase::PARAM_ISMULTI => true + ApiBase::PARAM_ISMULTI => true, + ApiBase::PARAM_HELP_MSG_PER_VALUE => array(), ), ); } diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json index ae7a9c6818..524dffdef5 100644 --- a/includes/api/i18n/en.json +++ b/includes/api/i18n/en.json @@ -368,7 +368,9 @@ "apihelp-query+allcategories-param-min": "Only return categories with at least this many members.", "apihelp-query+allcategories-param-max": "Only return categories with at most this many members.", "apihelp-query+allcategories-param-limit": "How many categories to return.", - "apihelp-query+allcategories-param-prop": "Which properties to get:\n;size:Adds number of pages in the category.\n;hidden:Tags categories that are hidden with __HIDDENCAT__.", + "apihelp-query+allcategories-param-prop": "Which properties to get:", + "apihelp-query+allcategories-paramvalue-prop-size": "Adds number of pages in the category.", + "apihelp-query+allcategories-paramvalue-prop-hidden": "Tags categories that are hidden with __HIDDENCAT__.", "apihelp-query+allcategories-example-size": "List categories with information on the number of pages in each.", "apihelp-query+allcategories-example-generator": "Retrieve info about the category page itself for categories beginning List.", diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json index 95562d8f1d..665d53aeab 100644 --- a/includes/api/i18n/qqq.json +++ b/includes/api/i18n/qqq.json @@ -345,7 +345,9 @@ "apihelp-query+allcategories-param-min": "{{doc-apihelp-param|query+allcategories|min}}", "apihelp-query+allcategories-param-max": "{{doc-apihelp-param|query+allcategories|max}}", "apihelp-query+allcategories-param-limit": "{{doc-apihelp-param|query+allcategories|limit}}", - "apihelp-query+allcategories-param-prop": "{{doc-apihelp-param|query+allcategories|prop}}", + "apihelp-query+allcategories-param-prop": "{{doc-apihelp-param|query+allcategories|prop|paramvalues=1}}", + "apihelp-query+allcategories-paramvalue-prop-size": "{{doc-apihelp-paramvalue|query+allcategories|prop|size}}", + "apihelp-query+allcategories-paramvalue-prop-hidden": "{{doc-apihelp-paramvalue|query+allcategories|prop|hidden}}", "apihelp-query+allcategories-example-size": "{{doc-apihelp-example|query+allcategories}}", "apihelp-query+allcategories-example-generator": "{{doc-apihelp-example|query+allcategories}}", "apihelp-query+alldeletedrevisions-description": "{{doc-apihelp-description|query+alldeletedrevisions}}", -- 2.20.1