From: Rafid Aslam Date: Fri, 7 Dec 2018 21:00:40 +0000 (+0700) Subject: SpecialUnusedimages: Change message when CountCategorizedImagesAsUsed X-Git-Tag: 1.34.0-rc.0~3306^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=0a2c57efe54bd1d31ba99840ddb47d26abf3e57f;p=lhc%2Fweb%2Fwiklou.git SpecialUnusedimages: Change message when CountCategorizedImagesAsUsed Change the header message of SpecialUnusedimages to explain that categorized images are considered as used when $wgCountCategorizedImagesAsUsed is turned on. Bug: T210923 Change-Id: Ifefdaaf6e80ee50ce64459c708f651bd871d746e --- diff --git a/includes/specials/SpecialUnusedimages.php b/includes/specials/SpecialUnusedimages.php index 9fcbf15f78..bcb3b85e36 100644 --- a/includes/specials/SpecialUnusedimages.php +++ b/includes/specials/SpecialUnusedimages.php @@ -76,6 +76,11 @@ class UnusedimagesPage extends ImageQueryPage { } function getPageHeader() { + if ( $this->getConfig()->get( 'CountCategorizedImagesAsUsed' ) ) { + return $this->msg( + 'unusedimagestext-categorizedimgisused' + )->parseAsBlock(); + } return $this->msg( 'unusedimagestext' )->parseAsBlock(); } diff --git a/languages/i18n/en.json b/languages/i18n/en.json index 8564d612c1..75e6281330 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -2086,6 +2086,7 @@ "move": "Move", "movethispage": "Move this page", "unusedimagestext": "The following files exist but are not embedded in any page.\nPlease note that other web sites may link to a file with a direct URL, and so may still be listed here despite being in active use.", + "unusedimagestext-categorizedimgisused": "The following files exist but are not embedded in any page. Categorized images are considered as used despite that they are not embedded in any page.\nPlease note that other web sites may link to a file with a direct URL, and so may still be listed here despite being in active use.", "unusedcategoriestext": "The following category pages exist, although no other page or category makes use of them.", "notargettitle": "No target", "notargettext": "You have not specified a target page or user to perform this function on.", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index b98725da17..6b9fa154bd 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -2289,6 +2289,7 @@ "move": "Name of Move tab. Should be in the imperative mood.\n\nSee also:\n* {{msg-mw|Move}}\n* {{msg-mw|Accesskey-ca-move}}\n* {{msg-mw|Tooltip-ca-move}}\n{{Identical|Move}}", "movethispage": "{{Identical|Move this page}}", "unusedimagestext": "Header message of [[Special:UnusedFiles]]", + "unusedimagestext-categorizedimgisused": "Header message of [[Special:UnusedFiles]] with $wgCountCategorizedImagesAsUsed activated (categorized images are considered as used). This message is sometimes used in place of {{msg-mw|unusedimagestext}}", "unusedcategoriestext": "Used as page header in [[Special:UnusedCategories]].", "notargettitle": "Used as title of error message.\n\nSee also:\n* {{msg-mw|Notargettitle|title}}\n* {{msg-mw|Notargettext|text}}", "notargettext": "Used as error message in [[Special:MovePage]].\n\nSee also:\n* {{msg-mw|Notargettitle|title}}\n* {{msg-mw|Notargettext|text}}",