From 2ce87d20da5f697259af18b20e549a6046f426f3 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Fri, 3 Nov 2006 05:50:55 +0000 Subject: [PATCH] (bugs 461, 7547) Allow "Categories:" link at bottom of pages to be customized via pagecategorieslink message. Note that this also removes an unused parameter, Special:Categories?article=thisarticle. If that's supposed to do something, someone should revert this and make it do something. --- RELEASE-NOTES | 2 ++ includes/Skin.php | 3 +-- languages/messages/MessagesEn.php | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index d2aa0dd1cc..2ce4a28839 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -128,6 +128,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 7723) Add ic: parser function, with alias tc:, which capitalises the first letter of each word. * (bug 1133) Special:Emailuser: add an option to send yourself a copy your mail. +* (bug 461) Allow "Categories:" link at bottom of pages to be customized via + pagecategorieslink message. == Languages updated == diff --git a/includes/Skin.php b/includes/Skin.php index e7e894b87a..0f9ca2ca67 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -579,8 +579,7 @@ END; $t = $embed . implode ( "{$pop} {$sep} {$embed}" , $wgOut->mCategoryLinks ) . $pop; $msg = wfMsgExt( 'pagecategories', array( 'parsemag', 'escape' ), count( $wgOut->mCategoryLinks ) ); - $s = $this->makeKnownLinkObj( SpecialPage::getTitleFor( 'Categories' ), - $msg, 'article=' . urlencode( $wgTitle->getPrefixedDBkey() ) ) + $s = $this->makeLinkObj( Title::newFromText( wfMsgForContent('pagecategorieslink') ), $msg ) . ': ' . $t; # optional 'dmoz-like' category browser. Will be shown under the list diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 2e94c757a5..c65247d747 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -531,6 +531,7 @@ parent class in order maintain consistency across languages. # 'categories' => 'Categories', 'pagecategories' => '{{PLURAL:$1|Category|Categories}}', +'pagecategorieslink' => 'Special:Categories', 'category_header' => 'Articles in category "$1"', 'subcategories' => 'Subcategories', -- 2.20.1