API: Use message-per-value for apihelp-query+categories-param-prop

Use message-per-value for message
apihelp-query+categories-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: Iabdd4d3b7efcd0c4c800e24cc5c78db47df2f454
This commit is contained in:
umherirrender 2015-08-05 22:01:51 +02:00
parent d4111ed30d
commit e3322c0bd8
3 changed files with 10 additions and 3 deletions

View file

@ -184,7 +184,8 @@ class ApiQueryCategories extends ApiQueryGeneratorBase {
'sortkey',
'timestamp',
'hidden',
)
),
ApiBase::PARAM_HELP_MSG_PER_VALUE => array(),
),
'show' => array(
ApiBase::PARAM_ISMULTI => true,

View file

@ -539,7 +539,10 @@
"apihelp-query+blocks-example-users": "List blocks of users <kbd>Alice</kbd> and <kbd>Bob</kbd>.",
"apihelp-query+categories-description": "List all categories the pages belong to.",
"apihelp-query+categories-param-prop": "Which additional properties to get for each category:\n;sortkey:Adds the sortkey (hexadecimal string) and sortkey prefix (human-readable part) for the category.\n;timestamp:Adds timestamp of when the category was added.\n;hidden:Tags categories that are hidden with _&#95;HIDDENCAT_&#95;.",
"apihelp-query+categories-param-prop": "Which additional properties to get for each category:",
"apihelp-query+categories-paramvalue-prop-sortkey": "Adds the sortkey (hexadecimal string) and sortkey prefix (human-readable part) for the category.",
"apihelp-query+categories-paramvalue-prop-timestamp": "Adds timestamp of when the category was added.",
"apihelp-query+categories-paramvalue-prop-hidden": "Tags categories that are hidden with <code>_&#95;HIDDENCAT_&#95;</code>.",
"apihelp-query+categories-param-show": "Which kind of categories to show.",
"apihelp-query+categories-param-limit": "How many categories to return.",
"apihelp-query+categories-param-categories": "Only list these categories. Useful for checking whether a certain page is in a certain category.",

View file

@ -504,7 +504,10 @@
"apihelp-query+blocks-example-simple": "{{doc-apihelp-example|query+blocks}}",
"apihelp-query+blocks-example-users": "{{doc-apihelp-example|query+blocks}}",
"apihelp-query+categories-description": "{{doc-apihelp-description|query+categories}}",
"apihelp-query+categories-param-prop": "{{doc-apihelp-param|query+categories|prop}}",
"apihelp-query+categories-param-prop": "{{doc-apihelp-param|query+categories|prop|paramvalues=1}}",
"apihelp-query+categories-paramvalue-prop-sortkey": "{{doc-apihelp-paramvalue|query+categories|prop|sortkey}}",
"apihelp-query+categories-paramvalue-prop-timestamp": "{{doc-apihelp-paramvalue|query+categories|prop|timestamp}}",
"apihelp-query+categories-paramvalue-prop-hidden": "{{doc-apihelp-paramvalue|query+categories|prop|hidden}}",
"apihelp-query+categories-param-show": "{{doc-apihelp-param|query+categories|show}}",
"apihelp-query+categories-param-limit": "{{doc-apihelp-param|query+categories|limit}}",
"apihelp-query+categories-param-categories": "{{doc-apihelp-param|query+categories|categories}}",