SpecialUnusedimages: Change message when CountCategorizedImagesAsUsed
authorRafid Aslam <rafidteam@gmail.com>
Fri, 7 Dec 2018 21:00:40 +0000 (04:00 +0700)
committerRafid Aslam <rafidteam@gmail.com>
Sat, 8 Dec 2018 03:40:26 +0000 (10:40 +0700)
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

includes/specials/SpecialUnusedimages.php
languages/i18n/en.json
languages/i18n/qqq.json

index 9fcbf15..bcb3b85 100644 (file)
@@ -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();
        }
 
index 8564d61..75e6281 100644 (file)
        "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.",
index b98725d..6b9fa15 100644 (file)
        "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 <code>$wgCountCategorizedImagesAsUsed</code> 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}}",