From: Aryeh Gregor Date: Sun, 12 Nov 2006 03:16:31 +0000 (+0000) Subject: (bug 3687) Add distinct heading for media files in category display. X-Git-Tag: 1.31.0-rc.0~55215 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=fe2f11de5551feac199be97e788e2b7b9ca9bcc2;p=lhc%2Fweb%2Fwiklou.git (bug 3687) Add distinct heading for media files in category display. --- 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',