Umherirrender has uploaded a new change for review.
https://gerrit.wikimedia.org/r/229650
Change subject: API: Use message-per-value for
apihelp-query+logevents-param-prop
......................................................................
API: Use message-per-value for apihelp-query+logevents-param-prop
Use message-per-value for message
apihelp-query+logevents-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: Ie6fa05cdeeb12b7e2804dde0037c37bbd8cc5534
---
M includes/api/ApiQueryLogEvents.php
M includes/api/i18n/en.json
M includes/api/i18n/qqq.json
3 files changed, 24 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/50/229650/1
diff --git a/includes/api/ApiQueryLogEvents.php
b/includes/api/ApiQueryLogEvents.php
index 7b2381f..d87ad1e 100644
--- a/includes/api/ApiQueryLogEvents.php
+++ b/includes/api/ApiQueryLogEvents.php
@@ -401,7 +401,8 @@
'parsedcomment',
'details',
'tags'
- )
+ ),
+ ApiBase::PARAM_HELP_MSG_PER_VALUE => array(),
),
'type' => array(
ApiBase::PARAM_TYPE => $config->get( 'LogTypes'
)
diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json
index ae7a9c6..07107c8 100644
--- a/includes/api/i18n/en.json
+++ b/includes/api/i18n/en.json
@@ -789,7 +789,17 @@
"apihelp-query+linkshere-example-generator": "Get information about
pages linking to the [[Main Page]].",
"apihelp-query+logevents-description": "Get events from logs.",
- "apihelp-query+logevents-param-prop": "Which properties to
get:\n;ids:Adds the ID of the log event.\n;title:Adds the title of the page for
the log event.\n;type:Adds the type of log event.\n;user:Adds the user
responsible for the log event.\n;userid:Adds the user ID who was responsible
for the log event.\n;timestamp:Adds the timestamp for the event.\n;comment:Adds
the comment of the event.\n;parsedcomment:Adds the parsed comment of the
event.\n;details:Lists additional details about the event.\n;tags:Lists tags
for the event.",
+ "apihelp-query+logevents-param-prop": "Which properties to get:",
+ "apihelp-query+logevents-paramvalue-prop-ids": "Adds the ID of the log
event.",
+ "apihelp-query+logevents-paramvalue-prop-title": "Adds the title of the
page for the log event.",
+ "apihelp-query+logevents-paramvalue-prop-type": "Adds the type of log
event.",
+ "apihelp-query+logevents-paramvalue-prop-user": "Adds the user
responsible for the log event.",
+ "apihelp-query+logevents-paramvalue-prop-userid": "Adds the user ID who
was responsible for the log event.",
+ "apihelp-query+logevents-paramvalue-prop-timestamp": "Adds the
timestamp for the log event.",
+ "apihelp-query+logevents-paramvalue-prop-comment": "Adds the comment of
the log event.",
+ "apihelp-query+logevents-paramvalue-prop-parsedcomment": "Adds the
parsed comment of the log event.",
+ "apihelp-query+logevents-paramvalue-prop-details": "Lists additional
details about the log event.",
+ "apihelp-query+logevents-paramvalue-prop-tags": "Lists tags for the log
event.",
"apihelp-query+logevents-param-type": "Filter log entries to only this
type.",
"apihelp-query+logevents-param-action": "Filter log actions to only
this action. Overrides <var>$1type</var>. Wildcard actions like
<kbd>action/*</kbd> allows to specify any string for the asterisk.",
"apihelp-query+logevents-param-start": "The timestamp to start
enumerating from.",
diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json
index 95562d8..1b1a83f 100644
--- a/includes/api/i18n/qqq.json
+++ b/includes/api/i18n/qqq.json
@@ -730,7 +730,17 @@
"apihelp-query+linkshere-example-simple":
"{{doc-apihelp-example|query+linkshere}}",
"apihelp-query+linkshere-example-generator":
"{{doc-apihelp-example|query+linkshere}}",
"apihelp-query+logevents-description":
"{{doc-apihelp-description|query+logevents}}",
- "apihelp-query+logevents-param-prop":
"{{doc-apihelp-param|query+logevents|prop}}",
+ "apihelp-query+logevents-param-prop":
"{{doc-apihelp-param|query+logevents|prop|paramvalues=1}}",
+ "apihelp-query+logevents-paramvalue-prop-ids":
"{{doc-apihelp-paramvalue|query+logevents|prop|ids}}",
+ "apihelp-query+logevents-paramvalue-prop-title":
"{{doc-apihelp-paramvalue|query+logevents|prop|title}}",
+ "apihelp-query+logevents-paramvalue-prop-type":
"{{doc-apihelp-paramvalue|query+logevents|prop|type}}",
+ "apihelp-query+logevents-paramvalue-prop-user":
"{{doc-apihelp-paramvalue|query+logevents|prop|user}}",
+ "apihelp-query+logevents-paramvalue-prop-userid":
"{{doc-apihelp-paramvalue|query+logevents|prop|userid}}",
+ "apihelp-query+logevents-paramvalue-prop-timestamp":
"{{doc-apihelp-paramvalue|query+logevents|prop|timestamp}}",
+ "apihelp-query+logevents-paramvalue-prop-comment":
"{{doc-apihelp-paramvalue|query+logevents|prop|comment}}",
+ "apihelp-query+logevents-paramvalue-prop-parsedcomment":
"{{doc-apihelp-paramvalue|query+logevents|prop|parsedcomment}}",
+ "apihelp-query+logevents-paramvalue-prop-details":
"{{doc-apihelp-paramvalue|query+logevents|prop|details}}",
+ "apihelp-query+logevents-paramvalue-prop-tags":
"{{doc-apihelp-paramvalue|query+logevents|prop|tags}}",
"apihelp-query+logevents-param-type":
"{{doc-apihelp-param|query+logevents|type}}",
"apihelp-query+logevents-param-action":
"{{doc-apihelp-param|query+logevents|action}}",
"apihelp-query+logevents-param-start":
"{{doc-apihelp-param|query+logevents|start}}",
--
To view, visit https://gerrit.wikimedia.org/r/229650
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie6fa05cdeeb12b7e2804dde0037c37bbd8cc5534
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