From be79b120919138df2f4e701ed65f202d87fcbd86 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Wed, 5 Aug 2015 21:39:58 +0200 Subject: [PATCH] API: Use message-per-value for apihelp-query+allusers-param-prop Use message-per-value for message apihelp-query+allusers-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: I695277f579f2b8f13c3b4743e49a890bb641a269 --- includes/api/ApiQueryAllUsers.php | 3 ++- includes/api/i18n/en.json | 8 +++++++- includes/api/i18n/qqq.json | 8 +++++++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/includes/api/ApiQueryAllUsers.php b/includes/api/ApiQueryAllUsers.php index b52b1c6aa3..eb3e553749 100644 --- a/includes/api/ApiQueryAllUsers.php +++ b/includes/api/ApiQueryAllUsers.php @@ -340,7 +340,8 @@ class ApiQueryAllUsers extends ApiQueryBase { 'rights', 'editcount', 'registration' - ) + ), + ApiBase::PARAM_HELP_MSG_PER_VALUE => array(), ), 'limit' => array( ApiBase::PARAM_DFLT => 10, diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json index ae7a9c6818..2808b666d0 100644 --- a/includes/api/i18n/en.json +++ b/includes/api/i18n/en.json @@ -509,7 +509,13 @@ "apihelp-query+allusers-param-group": "Only include users in the given groups.", "apihelp-query+allusers-param-excludegroup": "Exclude users in the given groups.", "apihelp-query+allusers-param-rights": "Only include users with the given rights. Does not include rights granted by implicit or auto-promoted groups like *, user, or autoconfirmed.", - "apihelp-query+allusers-param-prop": "Which pieces of information to include:\n;blockinfo:Adds the information about a current block on the user.\n;groups:Lists groups that the user is in. This uses more server resources and may return fewer results than the limit.\n;implicitgroups:Lists all the groups the user is automatically in.\n;rights:Lists rights that the user has.\n;editcount:Adds the edit count of the user.\n;registration:Adds the timestamp of when the user registered if available (may be blank).", + "apihelp-query+allusers-param-prop": "Which pieces of information to include:", + "apihelp-query+allusers-paramvalue-prop-blockinfo": "Adds the information about a current block on the user.", + "apihelp-query+allusers-paramvalue-prop-groups": "Lists groups that the user is in. This uses more server resources and may return fewer results than the limit.", + "apihelp-query+allusers-paramvalue-prop-implicitgroups": "Lists all the groups the user is automatically in.", + "apihelp-query+allusers-paramvalue-prop-rights": "Lists rights that the user has.", + "apihelp-query+allusers-paramvalue-prop-editcount": "Adds the edit count of the user.", + "apihelp-query+allusers-paramvalue-prop-registration": "Adds the timestamp of when the user registered if available (may be blank).", "apihelp-query+allusers-param-limit": "How many total user names to return.", "apihelp-query+allusers-param-witheditsonly": "Only list users who have made edits.", "apihelp-query+allusers-param-activeusers": "Only list users active in the last $1 {{PLURAL:$1|day|days}}.", diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json index 95562d8f1d..6d2ca6e95e 100644 --- a/includes/api/i18n/qqq.json +++ b/includes/api/i18n/qqq.json @@ -477,7 +477,13 @@ "apihelp-query+allusers-param-group": "{{doc-apihelp-param|query+allusers|group}}", "apihelp-query+allusers-param-excludegroup": "{{doc-apihelp-param|query+allusers|excludegroup}}", "apihelp-query+allusers-param-rights": "{{doc-apihelp-param|query+allusers|rights}}", - "apihelp-query+allusers-param-prop": "{{doc-apihelp-param|query+allusers|prop}}", + "apihelp-query+allusers-param-prop": "{{doc-apihelp-param|query+allusers|prop|paramvalues=1}}", + "apihelp-query+allusers-paramvalue-prop-blockinfo": "{{doc-apihelp-paramvalue|query+allusers|prop|blockinfo}}", + "apihelp-query+allusers-paramvalue-prop-groups": "{{doc-apihelp-paramvalue|query+allusers|prop|groups}}", + "apihelp-query+allusers-paramvalue-prop-implicitgroups": "{{doc-apihelp-paramvalue|query+allusers|prop|implicitgroups}}", + "apihelp-query+allusers-paramvalue-prop-rights": "{{doc-apihelp-paramvalue|query+allusers|prop|rights}}", + "apihelp-query+allusers-paramvalue-prop-editcount": "{{doc-apihelp-paramvalue|query+allusers|prop|editcount}}", + "apihelp-query+allusers-paramvalue-prop-registration": "{{doc-apihelp-paramvalue|query+allusers|prop|registration}}", "apihelp-query+allusers-param-limit": "{{doc-apihelp-param|query+allusers|limit}}", "apihelp-query+allusers-param-witheditsonly": "{{doc-apihelp-param|query+allusers|witheditsonly}}", "apihelp-query+allusers-param-activeusers": "{{doc-apihelp-param|query+allusers|activeusers|params=* $1 - Value of [[mw:Manual:$wgActiveUserDays]]|paramstart=2}}", -- 2.20.1