From: umherirrender Date: Thu, 6 Aug 2015 07:02:40 +0000 (+0200) Subject: API: Use message-per-value for apihelp-query+logevents-param-prop X-Git-Tag: 1.31.0-rc.0~10379^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%22id_auteur=%24connect_id_auteur%22%29%20.%20%22?a=commitdiff_plain;h=66f492544ef7f4c781a9f7a75cd733a559d829a9;p=lhc%2Fweb%2Fwiklou.git 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 --- diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index 7b2381f4d3..d87ad1e375 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -401,7 +401,8 @@ class ApiQueryLogEvents extends ApiQueryBase { '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 ae7a9c6818..07107c8c1d 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 $1type. Wildcard actions like action/* 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 95562d8f1d..1b1a83feff 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}}",