From fe2f11de5551feac199be97e788e2b7b9ca9bcc2 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Sun, 12 Nov 2006 03:16:31 +0000 Subject: [PATCH] (bug 3687) Add distinct heading for media files in category display. --- RELEASE-NOTES | 1 + includes/CategoryPage.php | 4 +++- languages/messages/MessagesEn.php | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 09e1f517bc..1f951fb42f 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/CategoryPage.php b/includes/CategoryPage.php index 277ee1dbf5..2069ebb7dc 100644 --- a/includes/CategoryPage.php +++ b/includes/CategoryPage.php @@ -257,7 +257,9 @@ class CategoryViewer { function getImageSection() { if( $this->showGallery && ! $this->gallery->isEmpty() ) { - return $this->gallery->toHTML(); + return "
\n" . + '

' . wfMsg( 'category-media-header', htmlspecialchars($this->title->getText()) ) . "

\n" . + $this->gallery->toHTML() . "\n
"; } else { return ''; } diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 63ea596b0c..1eb8b7e4de 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -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', -- 2.20.1