* Add number of links to Special:Whatlinkshere
authorRaimond Spekking <raymond@users.mediawiki.org>
Tue, 19 Jun 2007 13:02:51 +0000 (13:02 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Tue, 19 Jun 2007 13:02:51 +0000 (13:02 +0000)
  No need to change message name and break ~ 80 localizations, it's a cosmetic change only

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

index aad8ed5..bd4621d 100644 (file)
@@ -87,6 +87,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * On reupload, add a null revision to the image description page
 * Group log output by date
 * Kurdish interface latin/arabic writing system with transliteration
+* Add number of links to Special:Whatlinkshere
 
 == Bugfixes since 1.10 ==
 
index fdf3373..8c2c5c8 100644 (file)
@@ -73,7 +73,7 @@ class WhatLinksHerePage {
         * @private
         */
        function showIndirectLinks( $level, $target, $limit, $from = 0, $back = 0 ) {
-               global $wgOut;
+               global $wgOut, $wgLang;
                $fname = 'WhatLinksHerePage::showIndirectLinks';
                $dbr = wfGetDB( DB_READ );
                $options = array();
@@ -194,7 +194,7 @@ class WhatLinksHerePage {
 
                if ( $level == 0 ) {
                        $wgOut->addHTML( $this->whatlinkshereForm( $options ) );
-                       $wgOut->addWikiText( wfMsg( 'linkshere', $this->target->getPrefixedText() ) );
+                       $wgOut->addWikiText( wfMsgExt( 'linkshere', array( 'parsemag' ), $this->target->getPrefixedText(), $wgLang->formatNum( count( $rows ) ) ) );
                }
                $isredir = wfMsg( 'isredirect' );
                $istemplate = wfMsg( 'istemplate' );
index 935a6b6..9ad905c 100644 (file)
@@ -1530,7 +1530,7 @@ Im [[Special:Log/delete|Lösch-Logbuch]] finden Sie eine Übersicht der kürzlic
 'notargettitle'         => 'Keine Seite angegeben',
 'notargettext'          => 'Sie haben nicht angegeben, auf welche Seite diese Funktion angewendet werden soll.',
 'linklistsub'           => '(Linkliste)',
-'linkshere'             => "Die folgenden Seiten verlinken auf '''„[[:$1]]“''':",
+'linkshere'             => "Die {{PLURAL:$2|folgende Seite verlinkt|folgenden $2 Seiten verlinken}} auf '''„[[:$1]]“''':",
 'nolinkshere'           => "Keine Seite verlinkt auf '''„[[:$1]]“'''.",
 'nolinkshere-ns'        => "Keine Seite verlinkt auf '''„[[:$1]]“''' im gewählten Namensraum.",
 'isredirect'            => 'Weiterleitungsseite',
index 711dc01..525e146 100644 (file)
@@ -1931,7 +1931,7 @@ Consult the [[Special:Log/delete|deletion log]] for a record of recent deletions
 'notargettext'          => 'You have not specified a target page or user
 to perform this function on.',
 'linklistsub'           => '(List of links)',
-'linkshere'             => "The following pages link to '''[[:$1]]''':",
+'linkshere'             => "The following {{PLURAL:$2|page links|$2 pages link}} to '''[[:$1]]''':",
 'nolinkshere'           => "No pages link to '''[[:$1]]'''.",
 'nolinkshere-ns'        => "No pages link to '''[[:$1]]''' in the chosen namespace.",
 'isredirect'            => 'redirect page',