From 71f2c06b8657326c40c31bd593a90ee4285d1650 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Thu, 6 Aug 2015 10:04:11 +0200 Subject: [PATCH] API: Use message-per-value for apihelp-query+tags-param-prop Use message-per-value for message apihelp-query+tags-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: I27e21f52a3b189a26529edb0b95e60dbec23cbb0 --- includes/api/ApiQueryTags.php | 3 ++- includes/api/i18n/en.json | 9 ++++++++- includes/api/i18n/qqq.json | 9 ++++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/includes/api/ApiQueryTags.php b/includes/api/ApiQueryTags.php index 45f73b206a..284bb82129 100644 --- a/includes/api/ApiQueryTags.php +++ b/includes/api/ApiQueryTags.php @@ -163,7 +163,8 @@ class ApiQueryTags extends ApiQueryBase { 'source', 'active', ), - 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..70e83614ef 100644 --- a/includes/api/i18n/en.json +++ b/includes/api/i18n/en.json @@ -940,7 +940,14 @@ "apihelp-query+tags-description": "List change tags.", "apihelp-query+tags-param-limit": "The maximum number of tags to list.", - "apihelp-query+tags-param-prop": "Which properties to get:\n;name:Adds name of tag.\n;displayname:Adds system message for the tag.\n;description:Adds description of the tag.\n;hitcount:Adds the number of revisions and log entries that have this tag.\n;defined:Indicate whether the tag is defined.\n;source:Gets the sources of the tag, which may include extension for extension-defined tags and manual for tags that may be applied manually by users.\n;active:Whether the tag is still being applied.", + "apihelp-query+tags-param-prop": "Which properties to get:", + "apihelp-query+tags-paramvalue-prop-name": "Adds name of tag.", + "apihelp-query+tags-paramvalue-prop-displayname": "Adds system message for the tag.", + "apihelp-query+tags-paramvalue-prop-description": "Adds description of the tag.", + "apihelp-query+tags-paramvalue-prop-hitcount": "Adds the number of revisions and log entries that have this tag.", + "apihelp-query+tags-paramvalue-prop-defined": "Indicate whether the tag is defined.", + "apihelp-query+tags-paramvalue-prop-source": "Gets the sources of the tag, which may include extension for extension-defined tags and manual for tags that may be applied manually by users.", + "apihelp-query+tags-paramvalue-prop-active": "Whether the tag is still being applied.", "apihelp-query+tags-example-simple": "List available tags.", "apihelp-query+templates-description": "Returns all pages transcluded on the given pages.", diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json index 95562d8f1d..f8c81f5353 100644 --- a/includes/api/i18n/qqq.json +++ b/includes/api/i18n/qqq.json @@ -868,7 +868,14 @@ "apihelp-query+stashimageinfo-example-params": "{{doc-apihelp-example|query+stashimageinfo}}", "apihelp-query+tags-description": "{{doc-apihelp-description|query+tags}}", "apihelp-query+tags-param-limit": "{{doc-apihelp-param|query+tags|limit}}", - "apihelp-query+tags-param-prop": "{{doc-apihelp-param|query+tags|prop}}", + "apihelp-query+tags-param-prop": "{{doc-apihelp-param|query+tags|prop|paramvalues=1}}", + "apihelp-query+tags-paramvalue-prop-name": "{{doc-apihelp-paramvalue|query+tags|prop|name}}", + "apihelp-query+tags-paramvalue-prop-displayname": "{{doc-apihelp-paramvalue|query+tags|prop|displayname}}", + "apihelp-query+tags-paramvalue-prop-description": "{{doc-apihelp-paramvalue|query+tags|prop|description}}", + "apihelp-query+tags-paramvalue-prop-hitcount": "{{doc-apihelp-paramvalue|query+tags|prop|hitcount}}", + "apihelp-query+tags-paramvalue-prop-defined": "{{doc-apihelp-paramvalue|query+tags|prop|defined}}", + "apihelp-query+tags-paramvalue-prop-source": "{{doc-apihelp-paramvalue|query+tags|prop|source}}", + "apihelp-query+tags-paramvalue-prop-active": "{{doc-apihelp-paramvalue|query+tags|prop|active}}", "apihelp-query+tags-example-simple": "{{doc-apihelp-example|query+tags}}", "apihelp-query+templates-description": "{{doc-apihelp-description|query+templates}}", "apihelp-query+templates-param-namespace": "{{doc-apihelp-param|query+templates|namespace}}", -- 2.20.1