(bug 7960) Link to "what links here" for each "what links here" entry
authorRaimond Spekking <raymond@users.mediawiki.org>
Tue, 29 May 2007 22:02:02 +0000 (22:02 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Tue, 29 May 2007 22:02:02 +0000 (22:02 +0000)
Patch from Thomas "Tango" Dalton

RELEASE-NOTES
includes/SpecialWhatlinkshere.php
languages/messages/MessagesDe.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

index 5aa8dd5..56f91af 100644 (file)
@@ -42,6 +42,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 6072) Introducing 'border' keyword to the [[Image:]] syntax
 * Introducing 'frameless' keyword to [[Image:]] syntax which respects the
   user preferences for image width like 'thumb' but without a frame.
+* (bug 7960) Link to "what links here" for each "what links here" entry
 
 == Bugfixes since 1.10 ==
 
index a11e9d4..38da61e 100644 (file)
@@ -230,6 +230,10 @@ class WhatLinksHerePage {
                                $wgOut->addHTML( ' (' . implode( ', ', $props ) . ') ' );
                        }
 
+                       //add whatlinkshere link
+                       $whatlink=$this->skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Whatlinkshere', $nt->getPrefixedDBkey() ), wfMsgHtml( 'whatlinkshere-links' ) );
+                       $wgOut->addHTML(' ' . $whatlink);
+
                        if ( $row->page_is_redirect ) {
                                if ( $level < 2 ) {
                                        $this->showIndirectLinks( $level + 1, $nt, 500 );
index fc842cc..bd1d600 100644 (file)
@@ -260,7 +260,7 @@ $messages = array(
 
 'about'          => 'Über',
 'article'        => 'Seite',
-'newwindow'      => '(wird in einem neuen Fenster geöffnet)',
+'newwindow'      => '(öffnet sich in neuem Fenster)',
 'cancel'         => 'Abbrechen',
 'qbfind'         => 'Finden',
 'qbbrowse'       => 'Blättern',
@@ -540,7 +540,6 @@ Bevor eine E-Mail von anderen Benutzern über die {{SITENAME}}-Mailfunktion empf
 # Password reset dialog
 'resetpass'               => 'Passwort für Benutzerkonto zurücksetzen',
 'resetpass_announce'      => 'Anmeldung mit dem per E-Mail zugesandten Code. Um die Anmeldung abzuschließen, müssen Sie jetzt ein neues Passwort wählen.',
-'resetpass_text'          => '<!-- Add text here -->',
 'resetpass_header'        => 'Passwort zurücksetzen',
 'resetpass_submit'        => 'Passwort übermitteln und anmelden',
 'resetpass_success'       => 'Ihr Passwort wurde erfolgreich geändert. Es folgt die Anmeldung …',
@@ -1533,6 +1532,7 @@ Im [[Special:Log/delete|Lösch-Logbuch]] finden Sie eine Übersicht der kürzlic
 'istemplate'            => 'Vorlageneinbindung',
 'whatlinkshere-prev'    => '{{PLURAL:$1|vorheriger|vorherige $1}}',
 'whatlinkshere-next'    => '{{PLURAL:$1|nächster|nächste $1}}',
+'whatlinkshere-links'   => '(← Links)',
 
 # Block/unblock
 'blockip'                     => 'IP-Adresse/Benutzer sperren',
index 23a5fb6..8591190 100644 (file)
@@ -1958,6 +1958,7 @@ to perform this function on.',
 'istemplate'            => 'inclusion',
 'whatlinkshere-prev'    => '{{PLURAL:$1|previous|previous $1}}',
 'whatlinkshere-next'    => '{{PLURAL:$1|next|next $1}}',
+'whatlinkshere-links'   => '(? links)',
 
 # Block/unblock IP
 #
index 9df3303..7919d5b 100644 (file)
@@ -1265,6 +1265,7 @@ $wgMessageStructure = array(
                'istemplate',
                'whatlinkshere-prev',
                'whatlinkshere-next',
+               'whatlinkshere-links',
        ),
        'block' => array(
                'blockip',