Umherirrender has uploaded a new change for review.
https://gerrit.wikimedia.org/r/229657
Change subject: API: Use message-per-value for apihelp-query+tags-param-prop
......................................................................
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
---
M includes/api/ApiQueryTags.php
M includes/api/i18n/en.json
M includes/api/i18n/qqq.json
3 files changed, 18 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/57/229657/1
diff --git a/includes/api/ApiQueryTags.php b/includes/api/ApiQueryTags.php
index 45f73b2..284bb82 100644
--- a/includes/api/ApiQueryTags.php
+++ b/includes/api/ApiQueryTags.php
@@ -163,7 +163,8 @@
'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 ae7a9c6..70e8361 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
<samp>extension</samp> for extension-defined tags and <samp>manual</samp> 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 <samp>extension</samp> for extension-defined tags and
<samp>manual</samp> 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 95562d8..f8c81f5 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}}",
--
To view, visit https://gerrit.wikimedia.org/r/229657
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I27e21f52a3b189a26529edb0b95e60dbec23cbb0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits