From: umherirrender Date: Thu, 6 Aug 2015 08:26:28 +0000 (+0200) Subject: API: Use message-per-value for apihelp-query+watchlistraw-param-prop X-Git-Tag: 1.31.0-rc.0~10386^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=bb5be1456271ad222f4f2fb9ade6138a4a4fbeea;p=lhc%2Fweb%2Fwiklou.git 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 --- diff --git a/includes/api/ApiQueryWatchlistRaw.php b/includes/api/ApiQueryWatchlistRaw.php index f45d7d726e..fc7b80c5be 100644 --- a/includes/api/ApiQueryWatchlistRaw.php +++ b/includes/api/ApiQueryWatchlistRaw.php @@ -171,7 +171,8 @@ class ApiQueryWatchlistRaw extends ApiQueryGeneratorBase { 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 ae7a9c6818..dd21a407e8 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 95562d8f1d..60dd314e49 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}}",