From 4902ca5bc393c5b0a5bb28c535f3b162591830a4 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Tue, 19 Jun 2007 13:02:51 +0000 Subject: [PATCH] * Add number of links to Special:Whatlinkshere No need to change message name and break ~ 80 localizations, it's a cosmetic change only --- RELEASE-NOTES | 1 + includes/SpecialWhatlinkshere.php | 4 ++-- languages/messages/MessagesDe.php | 2 +- languages/messages/MessagesEn.php | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index aad8ed58c2..bd4621dc0e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/SpecialWhatlinkshere.php b/includes/SpecialWhatlinkshere.php index fdf3373b43..8c2c5c8fdd 100644 --- a/includes/SpecialWhatlinkshere.php +++ b/includes/SpecialWhatlinkshere.php @@ -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' ); diff --git a/languages/messages/MessagesDe.php b/languages/messages/MessagesDe.php index 935a6b6d67..9ad905cef3 100644 --- a/languages/messages/MessagesDe.php +++ b/languages/messages/MessagesDe.php @@ -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', diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 711dc017a1..525e1465d7 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -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', -- 2.20.1