From bee1c8b02e13d5e9b0a2b907170fe2bb7e949b34 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Thu, 6 Aug 2015 09:27:56 +0200 Subject: [PATCH] API: Use message-per-value for apihelp-query+protectedtitles-param-prop Use message-per-value for message apihelp-query+protectedtitles-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: I432ee402acd38b91c7e3f3da68a3cec20387aa96 --- includes/api/ApiQueryProtectedTitles.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/ApiQueryProtectedTitles.php b/includes/api/ApiQueryProtectedTitles.php index 033310d737..5ef2f70b19 100644 --- a/includes/api/ApiQueryProtectedTitles.php +++ b/includes/api/ApiQueryProtectedTitles.php @@ -216,7 +216,8 @@ class ApiQueryProtectedTitles extends ApiQueryGeneratorBase { 'parsedcomment', 'expiry', 'level' - ) + ), + ApiBase::PARAM_HELP_MSG_PER_VALUE => array(), ), 'continue' => array( ApiBase::PARAM_HELP_MSG => 'api-help-param-continue', diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json index ae7a9c6818..aaed5cb663 100644 --- a/includes/api/i18n/en.json +++ b/includes/api/i18n/en.json @@ -830,7 +830,14 @@ "apihelp-query+protectedtitles-param-limit": "How many total pages to return.", "apihelp-query+protectedtitles-param-start": "Start listing at this protection timestamp.", "apihelp-query+protectedtitles-param-end": "Stop listing at this protection timestamp.", - "apihelp-query+protectedtitles-param-prop": "Which properties to get:\n;timestamp:Adds the timestamp of when protection was added.\n;user:Adds the user that added the protection.\n;userid:Adds the user ID that added the protection.\n;comment:Adds the comment for the protection.\n;parsedcomment:Adds the parsed comment for the protection.\n;expiry:Adds the timestamp of when the protection will be lifted.\n;level:Adds the protection level.", + "apihelp-query+protectedtitles-param-prop": "Which properties to get:", + "apihelp-query+protectedtitles-paramvalue-prop-timestamp": "Adds the timestamp of when protection was added.", + "apihelp-query+protectedtitles-paramvalue-prop-user": "Adds the user that added the protection.", + "apihelp-query+protectedtitles-paramvalue-prop-userid": "Adds the user ID that added the protection.", + "apihelp-query+protectedtitles-paramvalue-prop-comment": "Adds the comment for the protection.", + "apihelp-query+protectedtitles-paramvalue-prop-parsedcomment": "Adds the parsed comment for the protection.", + "apihelp-query+protectedtitles-paramvalue-prop-expiry": "Adds the timestamp of when the protection will be lifted.", + "apihelp-query+protectedtitles-paramvalue-prop-level": "Adds the protection level.", "apihelp-query+protectedtitles-example-simple": "List protected titles.", "apihelp-query+protectedtitles-example-generator": "Find links to protected titles in the main namespace.", diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json index 95562d8f1d..875c377ed8 100644 --- a/includes/api/i18n/qqq.json +++ b/includes/api/i18n/qqq.json @@ -767,7 +767,14 @@ "apihelp-query+protectedtitles-param-limit": "{{doc-apihelp-param|query+protectedtitles|limit}}", "apihelp-query+protectedtitles-param-start": "{{doc-apihelp-param|query+protectedtitles|start}}", "apihelp-query+protectedtitles-param-end": "{{doc-apihelp-param|query+protectedtitles|end}}", - "apihelp-query+protectedtitles-param-prop": "{{doc-apihelp-param|query+protectedtitles|prop}}", + "apihelp-query+protectedtitles-param-prop": "{{doc-apihelp-param|query+protectedtitles|prop|paramvalues=1}}", + "apihelp-query+protectedtitles-paramvalue-prop-timestamp": "{{doc-apihelp-paramvalue|query+protectedtitles|prop|timestamp}}", + "apihelp-query+protectedtitles-paramvalue-prop-user": "{{doc-apihelp-paramvalue|query+protectedtitles|prop|user}}", + "apihelp-query+protectedtitles-paramvalue-prop-userid": "{{doc-apihelp-paramvalue|query+protectedtitles|prop|userid}}", + "apihelp-query+protectedtitles-paramvalue-prop-comment": "{{doc-apihelp-paramvalue|query+protectedtitles|prop|comment}}", + "apihelp-query+protectedtitles-paramvalue-prop-parsedcomment": "{{doc-apihelp-paramvalue|query+protectedtitles|prop|parsedcomment}}", + "apihelp-query+protectedtitles-paramvalue-prop-expiry": "{{doc-apihelp-paramvalue|query+protectedtitles|prop|expiry}}", + "apihelp-query+protectedtitles-paramvalue-prop-level": "{{doc-apihelp-paramvalue|query+protectedtitles|prop|level}}", "apihelp-query+protectedtitles-example-simple": "{{doc-apihelp-example|query+protectedtitles}}", "apihelp-query+protectedtitles-example-generator": "{{doc-apihelp-example|query+protectedtitles}}", "apihelp-query+querypage-description": "{{doc-apihelp-description|query+querypage}}", -- 2.20.1