* Consistency tweaks with other special pages like move/protect/delete:
authorRaimond Spekking <raymond@users.mediawiki.org>
Wed, 6 Aug 2008 12:49:16 +0000 (12:49 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Wed, 6 Aug 2008 12:49:16 +0000 (12:49 +0000)
** Add a backlink subtitle
** Remove 1 hardcoded '<' backlink and 1 '>' backlink

includes/specials/SpecialRecentchangeslinked.php
includes/specials/SpecialWhatlinkshere.php
languages/messages/MessagesEn.php
maintenance/language/messageTypes.inc
maintenance/language/messages.inc

index e5f5b60..525afc3 100644 (file)
@@ -162,14 +162,17 @@ class SpecialRecentchangeslinked extends SpecialRecentchanges {
                $extraOpts['submit'] = Xml::submitbutton( wfMsg('allpagessubmit') );
                return $extraOpts;
        }
-       
-       function setTopText( &$out, $opts ){}
-       
+
+       function setTopText( &$out, $opts ) {
+               global $wgOut, $wgUser;
+               $skin = $wgUser->getSkin();
+               $wgOut->setSubtitle( wfMsg( 'recentchangeslinked-backlink', $skin->link( $this->mTargetTitle, $this->mTargetTitle->getPrefixedText(), array(), array( 'redirect' => 'no'  ) ) ) );
+       }
+
        function setBottomText( &$out, $opts ){
                if( isset( $this->mTargetTitle ) && is_object( $this->mTargetTitle ) ){
                        global $wgUser;
                        $out->setFeedAppendQuery( "target=" . urlencode( $this->mTargetTitle->getPrefixedDBkey() ) );
-                       $out->addHTML("&lt; ".$wgUser->getSkin()->makeLinkObj( $this->mTargetTitle, "", "redirect=no" )."<hr />\n");
                }
                if( isset( $this->mResultEmpty ) && $this->mResultEmpty ){
                        $out->addWikiMsg( 'recentchangeslinked-noresult' );     
index 3502e33..2f9ca2b 100644 (file)
@@ -74,9 +74,7 @@ class WhatLinksHerePage {
                $this->selfTitle = SpecialPage::getTitleFor( 'Whatlinkshere', $this->target->getPrefixedDBkey() );
 
                $wgOut->setPageTitle( wfMsg( 'whatlinkshere-title', $this->target->getPrefixedText() ) );
-               $wgOut->setSubtitle( wfMsgHtml( 'linklistsub' ) );
-
-               $wgOut->addHTML( wfMsgExt( 'whatlinkshere-barrow', array( 'escapenoentities') ) . ' '  .$this->skin->makeLinkObj($this->target, '', 'redirect=no' )."<br />\n");
+               $wgOut->setSubtitle( wfMsg( 'whatlinkshere-backlink', $this->skin->link( $this->target, $this->target->getPrefixedText(), array(), array( 'redirect' => 'no'  ) ) ) );
 
                $this->showIndirectLinks( 0, $this->target, $opts->getValue( 'limit' ),
                        $opts->getValue( 'from' ), $opts->getValue( 'back' ) );
index 14ab36e..a04bd7a 100644 (file)
@@ -1592,6 +1592,7 @@ please see math/README to configure.',
 # Recent changes linked
 'recentchangeslinked'          => 'Related changes',
 'recentchangeslinked-title'    => 'Changes related to "$1"',
+'recentchangeslinked-backlink' => '← $1', # only translate this message to other languages if you have to change it
 'recentchangeslinked-noresult' => 'No changes on linked pages during the given period.',
 'recentchangeslinked-summary'  => "This is a list of changes made recently to pages linked from a specified page (or to members of a specified category).
 Pages on [[Special:Watchlist|your watchlist]] are '''bold'''.",
@@ -2306,11 +2307,10 @@ $1',
 
 # What links here
 'whatlinkshere'            => 'What links here',
-'whatlinkshere-title'      => 'Pages that link to $1',
+'whatlinkshere-title'      => 'Pages that link to "$1"',
 'whatlinkshere-summary'    => '', # do not translate or duplicate this message to other languages
 'whatlinkshere-page'       => 'Page:',
-'whatlinkshere-barrow'     => '>', # only translate this message to other languages if you have to change it
-'linklistsub'              => '(List of links)',
+'whatlinkshere-backlink'   => '← $1', # only translate this message to other languages if you have to change it
 'linkshere'                => "The following pages link to '''[[:$1]]''':",
 'nolinkshere'              => "No pages link to '''[[:$1]]'''.",
 'nolinkshere-ns'           => "No pages link to '''[[:$1]]''' in the chosen namespace.",
index 67caadd..56e0f1a 100644 (file)
@@ -310,7 +310,8 @@ $wgOptionalMessages = array(
        'autocomment-prefix',
        'listgrouprights-right-display',
        'timezone-utc',
-       'whatlinkshere-barrow',
+       'whatlinkshere-backlink',
+       'recentchangeslinked-backlink',
 );
 
 /** EXIF messages, which may be set as optional in several checks, but are generally mandatory */
index 9769421..e07a274 100644 (file)
@@ -937,6 +937,7 @@ $wgMessageStructure = array(
        'recentchangeslinked' => array(
                'recentchangeslinked',
                'recentchangeslinked-title',
+               'recentchangeslinked-backlink',
                'recentchangeslinked-noresult',
                'recentchangeslinked-summary',
                'recentchangeslinked-page',
@@ -1534,8 +1535,7 @@ $wgMessageStructure = array(
                'whatlinkshere-title',
                'whatlinkshere-summary',
                'whatlinkshere-page',
-               'whatlinkshere-barrow',
-               'linklistsub',
+               'whatlinkshere-backlink',
                'linkshere',
                'nolinkshere',
                'nolinkshere-ns',