From 4af9ee67afd0f597fa2612e9424461eff6fefade Mon Sep 17 00:00:00 2001 From: Rob Church Date: Tue, 28 Aug 2007 16:50:31 +0000 Subject: [PATCH] (bug 11022) Use a more accurate page title for Special:Whatlinkshere and Special:Recentchangeslinked --- RELEASE-NOTES | 2 ++ includes/SpecialRecentchangeslinked.php | 1 + includes/SpecialWhatlinkshere.php | 3 ++- languages/messages/MessagesEn.php | 2 ++ maintenance/language/messages.inc | 2 ++ 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 5c20f9954a..3b48b4aca8 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -192,6 +192,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN more information * (bug 11095) Honour "preview on first edit" preference when preloading text for a non-existent page +* (bug 11022) Use a more accurate page title for Special:Whatlinkshere and + Special:Recentchangeslinked == Bugfixes since 1.10 == diff --git a/includes/SpecialRecentchangeslinked.php b/includes/SpecialRecentchangeslinked.php index 829a856284..2a8ac32d1a 100644 --- a/includes/SpecialRecentchangeslinked.php +++ b/includes/SpecialRecentchangeslinked.php @@ -35,6 +35,7 @@ function wfSpecialRecentchangeslinked( $par = NULL ) { } $id = $nt->getArticleId(); + $wgOut->setPageTitle( wfMsg( 'recentchangeslinked-title', $nt->getPrefixedText() ) ); $wgOut->setSubtitle( htmlspecialchars( wfMsg( 'rclsub', $nt->getPrefixedText() ) ) ); if ( ! $days ) { diff --git a/includes/SpecialWhatlinkshere.php b/includes/SpecialWhatlinkshere.php index 572a80599e..d944f6b467 100644 --- a/includes/SpecialWhatlinkshere.php +++ b/includes/SpecialWhatlinkshere.php @@ -56,7 +56,8 @@ class WhatLinksHerePage { } $this->selfTitle = Title::makeTitleSafe( NS_SPECIAL, 'Whatlinkshere/' . $this->target->getPrefixedDBkey() ); - $wgOut->setPagetitle( $this->target->getPrefixedText() ); + + $wgOut->setPageTitle( wfMsg( 'whatlinkshere-title', $this->target->getPrefixedText() ) ); $wgOut->setSubtitle( wfMsg( 'linklistsub' ) ); $wgOut->addHTML( wfMsg( 'whatlinkshere-barrow' ) . ' ' .$this->skin->makeLinkObj($this->target, '', 'redirect=no' )."
\n"); diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 1b0e60b6b0..7132c97b24 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -1353,6 +1353,7 @@ Unselected groups will not be changed. You can deselect a group with CTRL + Left # Recent changes linked 'recentchangeslinked' => 'Related changes', +'recentchangeslinked-title' => 'Changes related to $1', 'recentchangeslinked-noresult' => 'No changes on linked pages during the given period.', 'recentchangeslinked-summary' => "This special page lists the last changes on pages who are linked. Pages on your watchlist are '''bold'''.", @@ -1971,6 +1972,7 @@ Consult the [[Special:Log/delete|deletion log]] for a record of recent deletions # What links here 'whatlinkshere' => 'What links here', +'whatlinkshere-title' => 'Pages that link to $1', 'whatlinkshere-summary' => '', # only translate this message to other languages if you have to change it 'whatlinkshere-barrow' => '<', # only translate this message to other languages if you have to change it 'notargettitle' => 'No target', diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index d56013f94b..5464948282 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -767,6 +767,7 @@ $wgMessageStructure = array( ), 'recentchangeslinked' => array( 'recentchangeslinked', + 'recentchangeslinked-title', 'recentchangeslinked-noresult', 'recentchangeslinked-summary', ), @@ -1306,6 +1307,7 @@ $wgMessageStructure = array( ), 'whatlinkshere' => array( 'whatlinkshere', + 'whatlinkshere-title', 'whatlinkshere-summary', 'whatlinkshere-barrow', 'notargettitle', -- 2.20.1