* plural support for nlinks
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sun, 14 May 2006 17:44:15 +0000 (17:44 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sun, 14 May 2006 17:44:15 +0000 (17:44 +0000)
includes/SpecialMostimages.php
includes/SpecialMostlinked.php
includes/SpecialWantedpages.php
languages/Messages.php

index d881e9b..b1ecb90 100644 (file)
@@ -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);
index aa86a4c..9d0ecea 100644 (file)
@@ -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 );
        }
 }
index e46e0e6..c92f059 100644 (file)
@@ -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);
index 4886cef..9100f4d 100644 (file)
@@ -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',