From b786a4ec2baef2de6d61fcb9b7fb2061ce130df8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Sun, 14 May 2006 17:44:15 +0000 Subject: [PATCH] * plural support for nlinks --- includes/SpecialMostimages.php | 3 ++- includes/SpecialMostlinked.php | 5 +++-- includes/SpecialWantedpages.php | 5 +++-- languages/Messages.php | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/includes/SpecialMostimages.php b/includes/SpecialMostimages.php index d881e9bd3a..b1ecb90186 100644 --- a/includes/SpecialMostimages.php +++ b/includes/SpecialMostimages.php @@ -45,7 +45,8 @@ class MostimagesPage extends QueryPage { $plink = $skin->makeKnownLink( $nt->getPrefixedText(), $text ); - $nl = wfMsg( 'nlinks', $wgLang->formatNum ( $result->value ) ); + $nl = wfMsgExt( 'nlinks', array( 'parsemag', 'escape'), + $wgLang->formatNum ( $result->value ) ); $nlink = $skin->makeKnownLink( $nt->getPrefixedText() . '#filelinks', $nl ); return wfSpecialList($plink, $nlink); diff --git a/includes/SpecialMostlinked.php b/includes/SpecialMostlinked.php index aa86a4c014..9d0ecea92f 100644 --- a/includes/SpecialMostlinked.php +++ b/includes/SpecialMostlinked.php @@ -80,8 +80,9 @@ class MostlinkedPage extends QueryPage { global $wgLang; $title = Title::makeTitleSafe( $result->namespace, $result->title ); $link = $skin->makeLinkObj( $title ); - $wlh = $this->makeWlhLink( $title, wfMsgHtml( 'nlinks', - $wgLang->formatNum( $result->value ) ), $skin ); + $wlh = $this->makeWlhLink( $title, + wfMsgExt( 'nlinks', array( 'parsemag', 'escape'), + $wgLang->formatNum( $result->value ) ), $skin ); return wfSpecialList( $link, $wlh ); } } diff --git a/includes/SpecialWantedpages.php b/includes/SpecialWantedpages.php index e46e0e673b..c92f059069 100644 --- a/includes/SpecialWantedpages.php +++ b/includes/SpecialWantedpages.php @@ -92,8 +92,9 @@ class WantedPagesPage extends QueryPage { # Make a link to "what links here" if it's required $wlhLink = $this->nlinks - ? $this->makeWlhLink( $title, $skin, wfMsgHtml( 'nlinks', - $wgLang->formatNum( $result->value ) ) ) + ? $this->makeWlhLink( $title, $skin, + wfMsgExt( 'nlinks', array( 'parsemag', 'escape'), + $wgLang->formatNum( $result->value ) ) ) : null; return wfSpecialList($pageLink, $wlhLink); diff --git a/languages/Messages.php b/languages/Messages.php index 4886cef0a6..9100f4d030 100644 --- a/languages/Messages.php +++ b/languages/Messages.php @@ -946,7 +946,7 @@ The [http://meta.wikimedia.org/wiki/Help:Job_queue job queue] length is '''$7''' 'mostcategories' => 'Articles with the most categories', 'mostimages' => 'Most linked to images', 'mostrevisions' => 'Articles with the most revisions', -'nlinks' => '$1 links', +'nlinks' => '$1 {{plural:$1|link|links}}', 'members' => '$1 members', 'allpages' => 'All pages', 'prefixindex' => 'Prefix index', -- 2.20.1