From f92f399257836814a1ebdc22804e9eb5118f4feb Mon Sep 17 00:00:00 2001 From: umherirrender Date: Thu, 6 Aug 2015 09:51:00 +0200 Subject: [PATCH] API: Use message-per-value for apihelp-query+siteinfo-param-prop Use message-per-value for message apihelp-query+siteinfo-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: I458fddcaef1cc96656a87375eff9707c8ba0db94 --- includes/api/ApiQuerySiteinfo.php | 3 ++- includes/api/i18n/en.json | 24 +++++++++++++++++++++++- includes/api/i18n/qqq.json | 24 +++++++++++++++++++++++- 3 files changed, 48 insertions(+), 3 deletions(-) diff --git a/includes/api/ApiQuerySiteinfo.php b/includes/api/ApiQuerySiteinfo.php index 1ce5761993..bcd5d9ecc0 100644 --- a/includes/api/ApiQuerySiteinfo.php +++ b/includes/api/ApiQuerySiteinfo.php @@ -854,7 +854,8 @@ class ApiQuerySiteinfo extends ApiQueryBase { 'variables', 'protocols', 'defaultoptions', - ) + ), + ApiBase::PARAM_HELP_MSG_PER_VALUE => array(), ), 'filteriw' => array( ApiBase::PARAM_TYPE => array( diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json index ae7a9c6818..a9aac58bb7 100644 --- a/includes/api/i18n/en.json +++ b/includes/api/i18n/en.json @@ -923,7 +923,29 @@ "apihelp-query+search-example-generator": "Get page info about the pages returned for a search for meaning.", "apihelp-query+siteinfo-description": "Return general information about the site.", - "apihelp-query+siteinfo-param-prop": "Which information to get:\n;general:Overall system information.\n;namespaces:List of registered namespaces and their canonical names.\n;namespacealiases:List of registered namespace aliases.\n;specialpagealiases:List of special page aliases.\n;magicwords:List of magic words and their aliases.\n;statistics:Returns site statistics.\n;interwikimap:Returns interwiki map (optionally filtered, optionally localised by using $1inlanguagecode).\n;dbrepllag:Returns database server with the highest replication lag.\n;usergroups:Returns user groups and the associated permissions.\n;libraries:Returns libraries installed on the wiki.\n;extensions:Returns extensions installed on the wiki.\n;fileextensions:Returns list of file extensions allowed to be uploaded.\n;rightsinfo:Returns wiki rights (license) information if available.\n;restrictions:Returns information on available restriction (protection) types.\n;languages:Returns a list of languages MediaWiki supports (optionally localised by using $1inlanguagecode).\n;skins:Returns a list of all enabled skins (optionally localised by using $1inlanguagecode, otherwise in the content language).\n;extensiontags:Returns a list of parser extension tags.\n;functionhooks:Returns a list of parser function hooks.\n;showhooks:Returns a list of all subscribed hooks (contents of [[mw:Manual:$wgHooks|$wgHooks]]).\n;variables:Returns a list of variable IDs.\n;protocols:Returns a list of protocols that are allowed in external links.\n;defaultoptions:Returns the default values for user preferences.", + "apihelp-query+siteinfo-param-prop": "Which information to get:", + "apihelp-query+siteinfo-paramvalue-prop-general": "Overall system information.", + "apihelp-query+siteinfo-paramvalue-prop-namespaces": "List of registered namespaces and their canonical names.", + "apihelp-query+siteinfo-paramvalue-prop-namespacealiases": "List of registered namespace aliases.", + "apihelp-query+siteinfo-paramvalue-prop-specialpagealiases": "List of special page aliases.", + "apihelp-query+siteinfo-paramvalue-prop-magicwords": "List of magic words and their aliases.", + "apihelp-query+siteinfo-paramvalue-prop-statistics": "Returns site statistics.", + "apihelp-query+siteinfo-paramvalue-prop-interwikimap": "Returns interwiki map (optionally filtered, optionally localised by using $1inlanguagecode).", + "apihelp-query+siteinfo-paramvalue-prop-dbrepllag": "Returns database server with the highest replication lag.", + "apihelp-query+siteinfo-paramvalue-prop-usergroups": "Returns user groups and the associated permissions.", + "apihelp-query+siteinfo-paramvalue-prop-libraries": "Returns libraries installed on the wiki.", + "apihelp-query+siteinfo-paramvalue-prop-extensions": "Returns extensions installed on the wiki.", + "apihelp-query+siteinfo-paramvalue-prop-fileextensions": "Returns list of file extensions allowed to be uploaded.", + "apihelp-query+siteinfo-paramvalue-prop-rightsinfo": "Returns wiki rights (license) information if available.", + "apihelp-query+siteinfo-paramvalue-prop-restrictions": "Returns information on available restriction (protection) types.", + "apihelp-query+siteinfo-paramvalue-prop-languages": "Returns a list of languages MediaWiki supports (optionally localised by using $1inlanguagecode).", + "apihelp-query+siteinfo-paramvalue-prop-skins": "Returns a list of all enabled skins (optionally localised by using $1inlanguagecode, otherwise in the content language).", + "apihelp-query+siteinfo-paramvalue-prop-extensiontags": "Returns a list of parser extension tags.", + "apihelp-query+siteinfo-paramvalue-prop-functionhooks": "Returns a list of parser function hooks.", + "apihelp-query+siteinfo-paramvalue-prop-showhooks": "Returns a list of all subscribed hooks (contents of [[mw:Manual:$wgHooks|$wgHooks]]).", + "apihelp-query+siteinfo-paramvalue-prop-variables": "Returns a list of variable IDs.", + "apihelp-query+siteinfo-paramvalue-prop-protocols": "Returns a list of protocols that are allowed in external links.", + "apihelp-query+siteinfo-paramvalue-prop-defaultoptions": "Returns the default values for user preferences.", "apihelp-query+siteinfo-param-filteriw": "Return only local or only nonlocal entries of the interwiki map.", "apihelp-query+siteinfo-param-showalldb": "List all database servers, not just the one lagging the most.", "apihelp-query+siteinfo-param-numberingroup": "Lists the number of users in user groups.", diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json index 95562d8f1d..239d947077 100644 --- a/includes/api/i18n/qqq.json +++ b/includes/api/i18n/qqq.json @@ -853,7 +853,29 @@ "apihelp-query+search-example-text": "{{doc-apihelp-example|query+search}}", "apihelp-query+search-example-generator": "{{doc-apihelp-example|query+search}}", "apihelp-query+siteinfo-description": "{{doc-apihelp-description|query+siteinfo}}", - "apihelp-query+siteinfo-param-prop": "{{doc-apihelp-param|query+siteinfo|prop}}", + "apihelp-query+siteinfo-param-prop": "{{doc-apihelp-param|query+siteinfo|prop|paramvalues=1}}", + "apihelp-query+siteinfo-paramvalue-prop-general": "{{doc-apihelp-paramvalue|query+siteinfo|prop|general}}", + "apihelp-query+siteinfo-paramvalue-prop-namespaces": "{{doc-apihelp-paramvalue|query+siteinfo|prop|namespaces}}", + "apihelp-query+siteinfo-paramvalue-prop-namespacealiases": "{{doc-apihelp-paramvalue|query+siteinfo|prop|namespacealiases}}", + "apihelp-query+siteinfo-paramvalue-prop-specialpagealiases": "{{doc-apihelp-paramvalue|query+siteinfo|prop|specialpagealiases}}", + "apihelp-query+siteinfo-paramvalue-prop-magicwords": "{{doc-apihelp-paramvalue|query+siteinfo|prop|magicwords}}", + "apihelp-query+siteinfo-paramvalue-prop-statistics": "{{doc-apihelp-paramvalue|query+siteinfo|prop|statistics}}", + "apihelp-query+siteinfo-paramvalue-prop-interwikimap": "{{doc-apihelp-paramvalue|query+siteinfo|prop|interwikimap}}", + "apihelp-query+siteinfo-paramvalue-prop-dbrepllag": "{{doc-apihelp-paramvalue|query+siteinfo|prop|dbrepllag}}", + "apihelp-query+siteinfo-paramvalue-prop-usergroups": "{{doc-apihelp-paramvalue|query+siteinfo|prop|usergroups}}", + "apihelp-query+siteinfo-paramvalue-prop-libraries": "{{doc-apihelp-paramvalue|query+siteinfo|prop|libraries}}", + "apihelp-query+siteinfo-paramvalue-prop-extensions": "{{doc-apihelp-paramvalue|query+siteinfo|prop|extensions}}", + "apihelp-query+siteinfo-paramvalue-prop-fileextensions": "{{doc-apihelp-paramvalue|query+siteinfo|prop|fileextensions}}", + "apihelp-query+siteinfo-paramvalue-prop-rightsinfo": "{{doc-apihelp-paramvalue|query+siteinfo|prop|rightsinfo}}", + "apihelp-query+siteinfo-paramvalue-prop-restrictions": "{{doc-apihelp-paramvalue|query+siteinfo|prop|restrictions}}", + "apihelp-query+siteinfo-paramvalue-prop-languages": "{{doc-apihelp-paramvalue|query+siteinfo|prop|languages}}", + "apihelp-query+siteinfo-paramvalue-prop-skins": "{{doc-apihelp-paramvalue|query+siteinfo|prop|skins}}", + "apihelp-query+siteinfo-paramvalue-prop-extensiontags": "{{doc-apihelp-paramvalue|query+siteinfo|prop|extensiontags}}", + "apihelp-query+siteinfo-paramvalue-prop-functionhooks": "{{doc-apihelp-paramvalue|query+siteinfo|prop|functionhooks}}", + "apihelp-query+siteinfo-paramvalue-prop-showhooks": "{{doc-apihelp-paramvalue|query+siteinfo|prop|showhooks}}", + "apihelp-query+siteinfo-paramvalue-prop-variables": "{{doc-apihelp-paramvalue|query+siteinfo|prop|variables}}", + "apihelp-query+siteinfo-paramvalue-prop-protocols": "{{doc-apihelp-paramvalue|query+siteinfo|prop|protocols}}", + "apihelp-query+siteinfo-paramvalue-prop-defaultoptions": "{{doc-apihelp-paramvalue|query+siteinfo|prop|defaultoptions}}", "apihelp-query+siteinfo-param-filteriw": "{{doc-apihelp-param|query+siteinfo|filteriw}}", "apihelp-query+siteinfo-param-showalldb": "{{doc-apihelp-param|query+siteinfo|showalldb}}", "apihelp-query+siteinfo-param-numberingroup": "{{doc-apihelp-param|query+siteinfo|numberingroup}}", -- 2.20.1