Umherirrender has uploaded a new change for review.

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

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

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

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


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/63/229663/1

diff --git a/includes/api/ApiQueryWatchlistRaw.php 
b/includes/api/ApiQueryWatchlistRaw.php
index f45d7d7..fc7b80c 100644
--- a/includes/api/ApiQueryWatchlistRaw.php
+++ b/includes/api/ApiQueryWatchlistRaw.php
@@ -171,7 +171,8 @@
                                ApiBase::PARAM_ISMULTI => true,
                                ApiBase::PARAM_TYPE => array(
                                        'changed',
-                               )
+                               ),
+                               ApiBase::PARAM_HELP_MSG_PER_VALUE => array(),
                        ),
                        'show' => array(
                                ApiBase::PARAM_ISMULTI => true,
diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json
index ae7a9c6..dd21a40 100644
--- a/includes/api/i18n/en.json
+++ b/includes/api/i18n/en.json
@@ -1026,7 +1026,8 @@
        "apihelp-query+watchlistraw-description": "Get all pages on the current 
user's watchlist.",
        "apihelp-query+watchlistraw-param-namespace": "Only list pages in the 
given namespaces.",
        "apihelp-query+watchlistraw-param-limit": "How many total results to 
return per request.",
-       "apihelp-query+watchlistraw-param-prop": "Which additional properties 
to get:\n;changed:Adds timestamp of when the user was last notified about the 
edit.",
+       "apihelp-query+watchlistraw-param-prop": "Which additional properties 
to get:",
+       "apihelp-query+watchlistraw-paramvalue-prop-changed": "Adds timestamp 
of when the user was last notified about the edit.",
        "apihelp-query+watchlistraw-param-show": "Only list items that meet 
these criteria.",
        "apihelp-query+watchlistraw-param-owner": "Used along with $1token to 
access a different user's watchlist.",
        "apihelp-query+watchlistraw-param-token": "A security token (available 
in the user's [[Special:Preferences#mw-prefsection-watchlist|preferences]]) to 
allow access to another user's watchlist.",
diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json
index 95562d8..60dd314 100644
--- a/includes/api/i18n/qqq.json
+++ b/includes/api/i18n/qqq.json
@@ -945,7 +945,8 @@
        "apihelp-query+watchlistraw-description": 
"{{doc-apihelp-description|query+watchlistraw}}",
        "apihelp-query+watchlistraw-param-namespace": 
"{{doc-apihelp-param|query+watchlistraw|namespace}}",
        "apihelp-query+watchlistraw-param-limit": 
"{{doc-apihelp-param|query+watchlistraw|limit}}",
-       "apihelp-query+watchlistraw-param-prop": 
"{{doc-apihelp-param|query+watchlistraw|prop}}",
+       "apihelp-query+watchlistraw-param-prop": 
"{{doc-apihelp-param|query+watchlistraw|prop|paramvalues=1}}",
+       "apihelp-query+watchlistraw-paramvalue-prop-changed": 
"{{doc-apihelp-paramvalue|query+watchlistraw|prop|changed}}",
        "apihelp-query+watchlistraw-param-show": 
"{{doc-apihelp-param|query+watchlistraw|show}}",
        "apihelp-query+watchlistraw-param-owner": 
"{{doc-apihelp-param|query+watchlistraw|owner}}",
        "apihelp-query+watchlistraw-param-token": 
"{{doc-apihelp-param|query+watchlistraw|token}}",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibdcf7b76a58b28a403053cc6683ac1539722ceda
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