diff options
author | Umherirrender <umherirrender_de.wp@web.de> | 2023-08-05 14:32:47 +0200 |
---|---|---|
committer | Umherirrender <umherirrender_de.wp@web.de> | 2023-08-05 14:32:47 +0200 |
commit | b7461e2b421616807077d20dd50b9cacde5fed65 (patch) | |
tree | f288320af39e07e532e8fdae179cda8085bdec32 | |
parent | c237f0548845662759bfcc6419cec9ca02d03c18 (diff) | |
download | mediawikicore-b7461e2b421616807077d20dd50b9cacde5fed65.tar.gz mediawikicore-b7461e2b421616807077d20dd50b9cacde5fed65.zip |
i18n: Split apihelp for parameter list=allpages&apprexpiry=
Easier to translate
There is no visible change on Special:ApiHelp/query+allpages
Bug: T285545
Change-Id: I3567596cba484e8ddf2ce58b3db2fce08cec8723
-rw-r--r-- | includes/api/ApiQueryAllPages.php | 3 | ||||
-rw-r--r-- | includes/api/i18n/en.json | 5 | ||||
-rw-r--r-- | includes/api/i18n/qqq.json | 3 |
3 files changed, 9 insertions, 2 deletions
diff --git a/includes/api/ApiQueryAllPages.php b/includes/api/ApiQueryAllPages.php index 62f438be01e9..99b5ade39c27 100644 --- a/includes/api/ApiQueryAllPages.php +++ b/includes/api/ApiQueryAllPages.php @@ -356,7 +356,8 @@ class ApiQueryAllPages extends ApiQueryGeneratorBase { 'definite', 'all' ], - ParamValidator::PARAM_DEFAULT => 'all' + ParamValidator::PARAM_DEFAULT => 'all', + ApiBase::PARAM_HELP_MSG_PER_VALUE => [], ], ]; diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json index 6f1135a45378..8c0c14c1cb3c 100644 --- a/includes/api/i18n/en.json +++ b/includes/api/i18n/en.json @@ -596,7 +596,10 @@ "apihelp-query+allpages-param-limit": "How many total pages to return.", "apihelp-query+allpages-param-dir": "The direction in which to list.", "apihelp-query+allpages-param-filterlanglinks": "Filter based on whether a page has langlinks. Note that this may not consider langlinks added by extensions.", - "apihelp-query+allpages-param-prexpiry": "Which protection expiry to filter the page on:\n;indefinite:Get only pages with indefinite protection expiry.\n;definite:Get only pages with a definite (specific) protection expiry.\n;all:Get pages with any protections expiry.", + "apihelp-query+allpages-param-prexpiry": "Which protection expiry to filter the page on:", + "apihelp-query+allpages-paramvalue-prexpiry-indefinite": "Get only pages with indefinite protection expiry.", + "apihelp-query+allpages-paramvalue-prexpiry-definite": "Get only pages with a definite (specific) protection expiry.", + "apihelp-query+allpages-paramvalue-prexpiry-all": "Get pages with any protections expiry.", "apihelp-query+allpages-example-b": "Show a list of pages starting at the letter <kbd>B</kbd>.", "apihelp-query+allpages-example-generator": "Show info about 4 pages starting at the letter <kbd>T</kbd>.", "apihelp-query+allpages-example-generator-revisions": "Show content of first 2 non-redirect pages beginning at <kbd>Re</kbd>.", diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json index 268f820a12f0..bd4478316fca 100644 --- a/includes/api/i18n/qqq.json +++ b/includes/api/i18n/qqq.json @@ -572,6 +572,9 @@ "apihelp-query+allpages-param-dir": "{{doc-apihelp-param|query+allpages|dir}}", "apihelp-query+allpages-param-filterlanglinks": "{{doc-apihelp-param|query+allpages|filterlanglinks}}", "apihelp-query+allpages-param-prexpiry": "{{doc-apihelp-param|query+allpages|prexpiry}}", + "apihelp-query+allpages-paramvalue-prexpiry-indefinite": "{{doc-apihelp-paramvalue|query+allpages|prexpiry|indefinite}}", + "apihelp-query+allpages-paramvalue-prexpiry-definite": "{{doc-apihelp-paramvalue|query+allpages|prexpiry|definite}}", + "apihelp-query+allpages-paramvalue-prexpiry-all": "{{doc-apihelp-paramvalue|query+allpages|prexpiry|all}}", "apihelp-query+allpages-example-b": "{{doc-apihelp-example|query+allpages}}", "apihelp-query+allpages-example-generator": "{{doc-apihelp-example|query+allpages}}", "apihelp-query+allpages-example-generator-revisions": "{{doc-apihelp-example|query+allpages}}", |