Umherirrender has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/227040

Change subject: API: Use message-per-value for 
apihelp-query+recentchanges-param-prop
......................................................................

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

Use message-per-value for message
apihelp-query+recentchanges-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: I7157c7f664245eed419b81020ba103cba68d83e9
---
M includes/api/ApiQueryRecentChanges.php
M includes/api/i18n/en.json
M includes/api/i18n/qqq.json
3 files changed, 32 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/40/227040/1

diff --git a/includes/api/ApiQueryRecentChanges.php 
b/includes/api/ApiQueryRecentChanges.php
index 74bccc2..f579062 100644
--- a/includes/api/ApiQueryRecentChanges.php
+++ b/includes/api/ApiQueryRecentChanges.php
@@ -636,7 +636,8 @@
                                        'loginfo',
                                        'tags',
                                        'sha1',
-                               )
+                               ),
+                               ApiBase::PARAM_HELP_MSG_PER_VALUE => array(),
                        ),
                        'token' => array(
                                ApiBase::PARAM_DEPRECATED => true,
diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json
index 6c7ce81..f1b736c 100644
--- a/includes/api/i18n/en.json
+++ b/includes/api/i18n/en.json
@@ -853,7 +853,21 @@
        "apihelp-query+recentchanges-param-user": "Only list changes by this 
user.",
        "apihelp-query+recentchanges-param-excludeuser": "Don't list changes by 
this user.",
        "apihelp-query+recentchanges-param-tag": "Only list changes tagged with 
this tag.",
-       "apihelp-query+recentchanges-param-prop": "Include additional pieces of 
information:\n;user:Adds the user responsible for the edit and tags if they are 
an IP.\n;userid:Adds the user ID responsible for the edit.\n;comment:Adds the 
comment for the edit.\n;parsedcomment:Adds the parsed comment for the 
edit.\n;flags:Adds flags for the edit.\n;timestamp:Adds timestamp of the 
edit.\n;title:Adds the page title of the edit.\n;ids:Adds the page ID, recent 
changes ID and the new and old revision ID.\n;sizes:Adds the new and old page 
length in bytes.\n;redirect:Tags edit if page is a redirect.\n;patrolled:Tags 
patrollable edits as being patrolled or unpatrolled.\n;loginfo:Adds log 
information (log ID, log type, etc) to log entries.\n;tags:Lists tags for the 
entry.\n;sha1:Adds the content checksum for entries associated with a 
revision.",
+       "apihelp-query+recentchanges-param-prop": "Include additional pieces of 
information:",
+       "apihelp-query+recentchanges-paramvalue-prop-user": "Adds the user 
responsible for the edit and tags if they are an IP.",
+       "apihelp-query+recentchanges-paramvalue-prop-userid": "Adds the user ID 
responsible for the edit.",
+       "apihelp-query+recentchanges-paramvalue-prop-comment": "Adds the 
comment for the edit.",
+       "apihelp-query+recentchanges-paramvalue-prop-parsedcomment": "Adds the 
parsed comment for the edit.",
+       "apihelp-query+recentchanges-paramvalue-prop-flags": "Adds flags for 
the edit.",
+       "apihelp-query+recentchanges-paramvalue-prop-timestamp": "Adds 
timestamp of the edit.",
+       "apihelp-query+recentchanges-paramvalue-prop-title": "Adds the page 
title of the edit.",
+       "apihelp-query+recentchanges-paramvalue-prop-ids": "Adds the page ID, 
recent changes ID and the new and old revision ID.",
+       "apihelp-query+recentchanges-paramvalue-prop-sizes": "Adds the new and 
old page length in bytes.",
+       "apihelp-query+recentchanges-paramvalue-prop-redirect": "Tags edit if 
page is a redirect.",
+       "apihelp-query+recentchanges-paramvalue-prop-patrolled": "Tags 
patrollable edits as being patrolled or unpatrolled.",
+       "apihelp-query+recentchanges-paramvalue-prop-loginfo": "Adds log 
information (log ID, log type, etc) to log entries.",
+       "apihelp-query+recentchanges-paramvalue-prop-tags": "Lists tags for the 
entry.",
+       "apihelp-query+recentchanges-paramvalue-prop-sha1": "Adds the content 
checksum for entries associated with a revision.",
        "apihelp-query+recentchanges-param-token": "Use 
<kbd>[[Special:ApiHelp/query+tokens|action=query&meta=tokens]]</kbd> instead.",
        "apihelp-query+recentchanges-param-show": "Show only items that meet 
these criteria. For example, to see only minor edits done by logged-in users, 
set $1show=minor|!anon.",
        "apihelp-query+recentchanges-param-limit": "How many total changes to 
return.",
diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json
index 95562d8..77f9fbf 100644
--- a/includes/api/i18n/qqq.json
+++ b/includes/api/i18n/qqq.json
@@ -787,7 +787,21 @@
        "apihelp-query+recentchanges-param-user": 
"{{doc-apihelp-param|query+recentchanges|user}}",
        "apihelp-query+recentchanges-param-excludeuser": 
"{{doc-apihelp-param|query+recentchanges|excludeuser}}",
        "apihelp-query+recentchanges-param-tag": 
"{{doc-apihelp-param|query+recentchanges|tag}}",
-       "apihelp-query+recentchanges-param-prop": 
"{{doc-apihelp-param|query+recentchanges|prop}}",
+       "apihelp-query+recentchanges-param-prop": 
"{{doc-apihelp-param|query+recentchanges|prop|paramvalues=1}}",
+       "apihelp-query+recentchanges-paramvalue-prop-user": 
"{{doc-apihelp-paramvalue|query+recentchanges|prop|user}}",
+       "apihelp-query+recentchanges-paramvalue-prop-userid": 
"{{doc-apihelp-paramvalue|query+recentchanges|prop|userid}}",
+       "apihelp-query+recentchanges-paramvalue-prop-comment": 
"{{doc-apihelp-paramvalue|query+recentchanges|prop|comment}}",
+       "apihelp-query+recentchanges-paramvalue-prop-parsedcomment": 
"{{doc-apihelp-paramvalue|query+recentchanges|prop|parsedcomment}}",
+       "apihelp-query+recentchanges-paramvalue-prop-flags": 
"{{doc-apihelp-paramvalue|query+recentchanges|prop|flags}}",
+       "apihelp-query+recentchanges-paramvalue-prop-timestamp": 
"{{doc-apihelp-paramvalue|query+recentchanges|prop|timestamp}}",
+       "apihelp-query+recentchanges-paramvalue-prop-title": 
"{{doc-apihelp-paramvalue|query+recentchanges|prop|title}}",
+       "apihelp-query+recentchanges-paramvalue-prop-ids": 
"{{doc-apihelp-paramvalue|query+recentchanges|prop|ids}}",
+       "apihelp-query+recentchanges-paramvalue-prop-sizes": 
"{{doc-apihelp-paramvalue|query+recentchanges|prop|sizes}}",
+       "apihelp-query+recentchanges-paramvalue-prop-redirect": 
"{{doc-apihelp-paramvalue|query+recentchanges|prop|redirect}}",
+       "apihelp-query+recentchanges-paramvalue-prop-patrolled": 
"{{doc-apihelp-paramvalue|query+recentchanges|prop|patrolled}}",
+       "apihelp-query+recentchanges-paramvalue-prop-loginfo": 
"{{doc-apihelp-paramvalue|query+recentchanges|prop|loginfo}}",
+       "apihelp-query+recentchanges-paramvalue-prop-tags": 
"{{doc-apihelp-paramvalue|query+recentchanges|prop|tags}}",
+       "apihelp-query+recentchanges-paramvalue-prop-sha1": 
"{{doc-apihelp-paramvalue|query+recentchanges|prop|sha1}}",
        "apihelp-query+recentchanges-param-token": 
"{{doc-apihelp-param|query+recentchanges|token}}",
        "apihelp-query+recentchanges-param-show": 
"{{doc-apihelp-param|query+recentchanges|show}}",
        "apihelp-query+recentchanges-param-limit": 
"{{doc-apihelp-param|query+recentchanges|limit}}",

-- 
To view, visit https://gerrit.wikimedia.org/r/227040
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7157c7f664245eed419b81020ba103cba68d83e9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to