From e3322c0bd8aa23a48fefab76224d6ce6b19c2850 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Wed, 5 Aug 2015 22:01:51 +0200 Subject: [PATCH] API: Use message-per-value for apihelp-query+categories-param-prop Use message-per-value for message apihelp-query+categories-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: Iabdd4d3b7efcd0c4c800e24cc5c78db47df2f454 --- includes/api/ApiQueryCategories.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/ApiQueryCategories.php b/includes/api/ApiQueryCategories.php index 7b3e6e313d..9e82fe7eab 100644 --- a/includes/api/ApiQueryCategories.php +++ b/includes/api/ApiQueryCategories.php @@ -184,7 +184,8 @@ class ApiQueryCategories extends ApiQueryGeneratorBase { 'sortkey', 'timestamp', 'hidden', - ) + ), + ApiBase::PARAM_HELP_MSG_PER_VALUE => array(), ), 'show' => array( ApiBase::PARAM_ISMULTI => true, diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json index ae7a9c6818..844f475479 100644 --- a/includes/api/i18n/en.json +++ b/includes/api/i18n/en.json @@ -539,7 +539,10 @@ "apihelp-query+blocks-example-users": "List blocks of users Alice and Bob.", "apihelp-query+categories-description": "List all categories the pages belong to.", - "apihelp-query+categories-param-prop": "Which additional properties to get for each category:\n;sortkey:Adds the sortkey (hexadecimal string) and sortkey prefix (human-readable part) for the category.\n;timestamp:Adds timestamp of when the category was added.\n;hidden:Tags categories that are hidden with __HIDDENCAT__.", + "apihelp-query+categories-param-prop": "Which additional properties to get for each category:", + "apihelp-query+categories-paramvalue-prop-sortkey": "Adds the sortkey (hexadecimal string) and sortkey prefix (human-readable part) for the category.", + "apihelp-query+categories-paramvalue-prop-timestamp": "Adds timestamp of when the category was added.", + "apihelp-query+categories-paramvalue-prop-hidden": "Tags categories that are hidden with __HIDDENCAT__.", "apihelp-query+categories-param-show": "Which kind of categories to show.", "apihelp-query+categories-param-limit": "How many categories to return.", "apihelp-query+categories-param-categories": "Only list these categories. Useful for checking whether a certain page is in a certain category.", diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json index 95562d8f1d..9e7de44e48 100644 --- a/includes/api/i18n/qqq.json +++ b/includes/api/i18n/qqq.json @@ -504,7 +504,10 @@ "apihelp-query+blocks-example-simple": "{{doc-apihelp-example|query+blocks}}", "apihelp-query+blocks-example-users": "{{doc-apihelp-example|query+blocks}}", "apihelp-query+categories-description": "{{doc-apihelp-description|query+categories}}", - "apihelp-query+categories-param-prop": "{{doc-apihelp-param|query+categories|prop}}", + "apihelp-query+categories-param-prop": "{{doc-apihelp-param|query+categories|prop|paramvalues=1}}", + "apihelp-query+categories-paramvalue-prop-sortkey": "{{doc-apihelp-paramvalue|query+categories|prop|sortkey}}", + "apihelp-query+categories-paramvalue-prop-timestamp": "{{doc-apihelp-paramvalue|query+categories|prop|timestamp}}", + "apihelp-query+categories-paramvalue-prop-hidden": "{{doc-apihelp-paramvalue|query+categories|prop|hidden}}", "apihelp-query+categories-param-show": "{{doc-apihelp-param|query+categories|show}}", "apihelp-query+categories-param-limit": "{{doc-apihelp-param|query+categories|limit}}", "apihelp-query+categories-param-categories": "{{doc-apihelp-param|query+categories|categories}}", -- 2.20.1