From e5030626ac1ca556ebad40c9763ad018b1e6ec06 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Wed, 5 Aug 2015 22:41:59 +0200 Subject: [PATCH] API: Use message-per-value for apihelp-query+filearchive-param-prop Use message-per-value for message apihelp-query+filearchive-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: Ia3e845e65f57ef8a8272d158ca6f46a47529c30e --- includes/api/ApiQueryFilearchive.php | 1 + includes/api/i18n/en.json | 14 +++++++++++++- includes/api/i18n/qqq.json | 14 +++++++++++++- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiQueryFilearchive.php b/includes/api/ApiQueryFilearchive.php index 54889846f1..8156edb901 100644 --- a/includes/api/ApiQueryFilearchive.php +++ b/includes/api/ApiQueryFilearchive.php @@ -274,6 +274,7 @@ class ApiQueryFilearchive extends ApiQueryBase { 'bitdepth', 'archivename', ), + ApiBase::PARAM_HELP_MSG_PER_VALUE => array(), ), 'limit' => array( ApiBase::PARAM_DFLT => 10, diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json index ae7a9c6818..3cf65a312b 100644 --- a/includes/api/i18n/en.json +++ b/includes/api/i18n/en.json @@ -649,7 +649,19 @@ "apihelp-query+filearchive-param-dir": "The direction in which to list.", "apihelp-query+filearchive-param-sha1": "SHA1 hash of image. Overrides $1sha1base36.", "apihelp-query+filearchive-param-sha1base36": "SHA1 hash of image in base 36 (used in MediaWiki).", - "apihelp-query+filearchive-param-prop": "Which image information to get:\n;sha1:Adds SHA-1 hash for the image.\n;timestamp:Adds timestamp for the uploaded version.\n;user:Adds user who uploaded the image version.\n;size:Adds the size of the image in bytes and the height, width and page count (if applicable).\n;dimensions:Alias for size.\n;description:Adds description of the image version.\n;parseddescription:Parse the description of the version.\n;mime:Adds MIME of the image.\n;mediatype:Adds the media type of the image.\n;metadata:Lists Exif metadata for the version of the image.\n;bitdepth:Adds the bit depth of the version.\n;archivename:Adds the filename of the archive version for non-latest versions.", + "apihelp-query+filearchive-param-prop": "Which image information to get:", + "apihelp-query+filearchive-paramvalue-prop-sha1": "Adds SHA-1 hash for the image.", + "apihelp-query+filearchive-paramvalue-prop-timestamp": "Adds timestamp for the uploaded version.", + "apihelp-query+filearchive-paramvalue-prop-user": "Adds user who uploaded the image version.", + "apihelp-query+filearchive-paramvalue-prop-size": "Adds the size of the image in bytes and the height, width and page count (if applicable).", + "apihelp-query+filearchive-paramvalue-prop-dimensions": "Alias for size.", + "apihelp-query+filearchive-paramvalue-prop-description": "Adds description of the image version.", + "apihelp-query+filearchive-paramvalue-prop-parseddescription": "Parse the description of the version.", + "apihelp-query+filearchive-paramvalue-prop-mime": "Adds MIME of the image.", + "apihelp-query+filearchive-paramvalue-prop-mediatype": "Adds the media type of the image.", + "apihelp-query+filearchive-paramvalue-prop-metadata": "Lists Exif metadata for the version of the image.", + "apihelp-query+filearchive-paramvalue-prop-bitdepth": "Adds the bit depth of the version.", + "apihelp-query+filearchive-paramvalue-prop-archivename": "Adds the filename of the archive version for non-latest versions.", "apihelp-query+filearchive-example-simple": "Show a list of all deleted files.", "apihelp-query+filerepoinfo-description": "Return meta information about image repositories configured on the wiki.", diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json index 95562d8f1d..153079ccea 100644 --- a/includes/api/i18n/qqq.json +++ b/includes/api/i18n/qqq.json @@ -603,7 +603,19 @@ "apihelp-query+filearchive-param-dir": "{{doc-apihelp-param|query+filearchive|dir}}", "apihelp-query+filearchive-param-sha1": "{{doc-apihelp-param|query+filearchive|sha1}}", "apihelp-query+filearchive-param-sha1base36": "{{doc-apihelp-param|query+filearchive|sha1base36}}", - "apihelp-query+filearchive-param-prop": "{{doc-apihelp-param|query+filearchive|prop}}", + "apihelp-query+filearchive-param-prop": "{{doc-apihelp-param|query+filearchive|prop|paramvalues=1}}", + "apihelp-query+filearchive-paramvalue-prop-sha1": "{{doc-apihelp-paramvalue|query+filearchive|prop|sha1}}", + "apihelp-query+filearchive-paramvalue-prop-timestamp": "{{doc-apihelp-paramvalue|query+filearchive|prop|timestamp}}", + "apihelp-query+filearchive-paramvalue-prop-user": "{{doc-apihelp-paramvalue|query+filearchive|prop|user}}", + "apihelp-query+filearchive-paramvalue-prop-size": "{{doc-apihelp-paramvalue|query+filearchive|prop|size}}", + "apihelp-query+filearchive-paramvalue-prop-dimensions": "{{doc-apihelp-paramvalue|query+filearchive|prop|dimensions}}", + "apihelp-query+filearchive-paramvalue-prop-description": "{{doc-apihelp-paramvalue|query+filearchive|prop|description}}", + "apihelp-query+filearchive-paramvalue-prop-parseddescription": "{{doc-apihelp-paramvalue|query+filearchive|prop|parseddescription}}", + "apihelp-query+filearchive-paramvalue-prop-mime": "{{doc-apihelp-paramvalue|query+filearchive|prop|mime}}", + "apihelp-query+filearchive-paramvalue-prop-mediatype": "{{doc-apihelp-paramvalue|query+filearchive|prop|mediatype}}", + "apihelp-query+filearchive-paramvalue-prop-metadata": "{{doc-apihelp-paramvalue|query+filearchive|prop|metadata}}", + "apihelp-query+filearchive-paramvalue-prop-bitdepth": "{{doc-apihelp-paramvalue|query+filearchive|prop|bitdepth}}", + "apihelp-query+filearchive-paramvalue-prop-archivename": "{{doc-apihelp-paramvalue|query+filearchive|prop|archivename}}", "apihelp-query+filearchive-example-simple": "{{doc-apihelp-example|query+filearchive}}", "apihelp-query+filerepoinfo-description": "{{doc-apihelp-description|query+filerepoinfo}}", "apihelp-query+filerepoinfo-param-prop": "{{doc-apihelp-param|query+filerepoinfo|prop}}", -- 2.20.1