Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -937,6 +937,7 @@ |
938 | 938 | 'recentchangeslinked' => array( |
939 | 939 | 'recentchangeslinked', |
940 | 940 | 'recentchangeslinked-title', |
| 941 | + 'recentchangeslinked-backlink', |
941 | 942 | 'recentchangeslinked-noresult', |
942 | 943 | 'recentchangeslinked-summary', |
943 | 944 | 'recentchangeslinked-page', |
— | — | @@ -1534,8 +1535,7 @@ |
1535 | 1536 | 'whatlinkshere-title', |
1536 | 1537 | 'whatlinkshere-summary', |
1537 | 1538 | 'whatlinkshere-page', |
1538 | | - 'whatlinkshere-barrow', |
1539 | | - 'linklistsub', |
| 1539 | + 'whatlinkshere-backlink', |
1540 | 1540 | 'linkshere', |
1541 | 1541 | 'nolinkshere', |
1542 | 1542 | 'nolinkshere-ns', |
Index: trunk/phase3/maintenance/language/messageTypes.inc |
— | — | @@ -310,7 +310,8 @@ |
311 | 311 | 'autocomment-prefix', |
312 | 312 | 'listgrouprights-right-display', |
313 | 313 | 'timezone-utc', |
314 | | - 'whatlinkshere-barrow', |
| 314 | + 'whatlinkshere-backlink', |
| 315 | + 'recentchangeslinked-backlink', |
315 | 316 | ); |
316 | 317 | |
317 | 318 | /** EXIF messages, which may be set as optional in several checks, but are generally mandatory */ |
Index: trunk/phase3/includes/specials/SpecialRecentchangeslinked.php |
— | — | @@ -162,14 +162,17 @@ |
163 | 163 | $extraOpts['submit'] = Xml::submitbutton( wfMsg('allpagessubmit') ); |
164 | 164 | return $extraOpts; |
165 | 165 | } |
166 | | - |
167 | | - function setTopText( &$out, $opts ){} |
168 | | - |
| 166 | + |
| 167 | + function setTopText( &$out, $opts ) { |
| 168 | + global $wgOut, $wgUser; |
| 169 | + $skin = $wgUser->getSkin(); |
| 170 | + $wgOut->setSubtitle( wfMsg( 'recentchangeslinked-backlink', $skin->link( $this->mTargetTitle, $this->mTargetTitle->getPrefixedText(), array(), array( 'redirect' => 'no' ) ) ) ); |
| 171 | + } |
| 172 | + |
169 | 173 | function setBottomText( &$out, $opts ){ |
170 | 174 | if( isset( $this->mTargetTitle ) && is_object( $this->mTargetTitle ) ){ |
171 | 175 | global $wgUser; |
172 | 176 | $out->setFeedAppendQuery( "target=" . urlencode( $this->mTargetTitle->getPrefixedDBkey() ) ); |
173 | | - $out->addHTML("< ".$wgUser->getSkin()->makeLinkObj( $this->mTargetTitle, "", "redirect=no" )."<hr />\n"); |
174 | 177 | } |
175 | 178 | if( isset( $this->mResultEmpty ) && $this->mResultEmpty ){ |
176 | 179 | $out->addWikiMsg( 'recentchangeslinked-noresult' ); |
Index: trunk/phase3/includes/specials/SpecialWhatlinkshere.php |
— | — | @@ -74,10 +74,8 @@ |
75 | 75 | $this->selfTitle = SpecialPage::getTitleFor( 'Whatlinkshere', $this->target->getPrefixedDBkey() ); |
76 | 76 | |
77 | 77 | $wgOut->setPageTitle( wfMsg( 'whatlinkshere-title', $this->target->getPrefixedText() ) ); |
78 | | - $wgOut->setSubtitle( wfMsgHtml( 'linklistsub' ) ); |
| 78 | + $wgOut->setSubtitle( wfMsg( 'whatlinkshere-backlink', $this->skin->link( $this->target, $this->target->getPrefixedText(), array(), array( 'redirect' => 'no' ) ) ) ); |
79 | 79 | |
80 | | - $wgOut->addHTML( wfMsgExt( 'whatlinkshere-barrow', array( 'escapenoentities') ) . ' ' .$this->skin->makeLinkObj($this->target, '', 'redirect=no' )."<br />\n"); |
81 | | - |
82 | 80 | $this->showIndirectLinks( 0, $this->target, $opts->getValue( 'limit' ), |
83 | 81 | $opts->getValue( 'from' ), $opts->getValue( 'back' ) ); |
84 | 82 | } |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -1592,6 +1592,7 @@ |
1593 | 1593 | # Recent changes linked |
1594 | 1594 | 'recentchangeslinked' => 'Related changes', |
1595 | 1595 | 'recentchangeslinked-title' => 'Changes related to "$1"', |
| 1596 | +'recentchangeslinked-backlink' => '← $1', # only translate this message to other languages if you have to change it |
1596 | 1597 | 'recentchangeslinked-noresult' => 'No changes on linked pages during the given period.', |
1597 | 1598 | 'recentchangeslinked-summary' => "This is a list of changes made recently to pages linked from a specified page (or to members of a specified category). |
1598 | 1599 | Pages on [[Special:Watchlist|your watchlist]] are '''bold'''.", |
— | — | @@ -2306,11 +2307,10 @@ |
2307 | 2308 | |
2308 | 2309 | # What links here |
2309 | 2310 | 'whatlinkshere' => 'What links here', |
2310 | | -'whatlinkshere-title' => 'Pages that link to $1', |
| 2311 | +'whatlinkshere-title' => 'Pages that link to "$1"', |
2311 | 2312 | 'whatlinkshere-summary' => '', # do not translate or duplicate this message to other languages |
2312 | 2313 | 'whatlinkshere-page' => 'Page:', |
2313 | | -'whatlinkshere-barrow' => '>', # only translate this message to other languages if you have to change it |
2314 | | -'linklistsub' => '(List of links)', |
| 2314 | +'whatlinkshere-backlink' => '← $1', # only translate this message to other languages if you have to change it |
2315 | 2315 | 'linkshere' => "The following pages link to '''[[:$1]]''':", |
2316 | 2316 | 'nolinkshere' => "No pages link to '''[[:$1]]'''.", |
2317 | 2317 | 'nolinkshere-ns' => "No pages link to '''[[:$1]]''' in the chosen namespace.", |