(bug 3687) Add distinct heading for media files in category display.
authorAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 12 Nov 2006 03:16:31 +0000 (03:16 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 12 Nov 2006 03:16:31 +0000 (03:16 +0000)
RELEASE-NOTES
includes/CategoryPage.php
languages/messages/MessagesEn.php

index 09e1f51..1f951fb 100644 (file)
@@ -178,6 +178,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   warning and a request to upgrade.
 * (bug 6440) Updated indexes to improve backlinking queries (links, templates, images)
 * Switched 'anon-only' block mode to default for IP blocks
+* (bug 3687) Add distinct heading for media files in category display.
 
 
 == Languages updated ==
index 277ee1d..2069ebb 100644 (file)
@@ -257,7 +257,9 @@ class CategoryViewer {
 
        function getImageSection() {
                if( $this->showGallery && ! $this->gallery->isEmpty() ) {
-                       return $this->gallery->toHTML();
+                       return "<div id=\"mw-category-media\">\n" .
+                       '<h2>' . wfMsg( 'category-media-header', htmlspecialchars($this->title->getText()) ) . "</h2>\n" .
+                       $this->gallery->toHTML() . "\n</div>";
                } else {
                        return '';
                }
index 63ea596..1eb8b7e 100644 (file)
@@ -533,6 +533,7 @@ parent class in order maintain consistency across languages.
 'pagecategorieslink' => 'Special:Categories',
 'category_header' => 'Articles in category "$1"',
 'subcategories' => 'Subcategories',
+'category-media-header' => 'Media in category "$1"',
 
 
 'linkprefix'           => '/^(.*?)([a-zA-Z\x80-\xff]+)$/sD',