(bug 11022) Use a more accurate page title for Special:Whatlinkshere and Special...
authorRob Church <robchurch@users.mediawiki.org>
Tue, 28 Aug 2007 16:50:31 +0000 (16:50 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Tue, 28 Aug 2007 16:50:31 +0000 (16:50 +0000)
RELEASE-NOTES
includes/SpecialRecentchangeslinked.php
includes/SpecialWhatlinkshere.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

index 5c20f99..3b48b4a 100644 (file)
@@ -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 ==
 
index 829a856..2a8ac32 100644 (file)
@@ -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 ) {
index 572a805..d944f6b 100644 (file)
@@ -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' )."<br />\n");
index 1b0e60b..7132c97 100644 (file)
@@ -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'  => '&lt;', # only translate this message to other languages if you have to change it
 'notargettitle'         => 'No target',
index d56013f..5464948 100644 (file)
@@ -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',