* Fix plural issues
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Tue, 19 May 2009 19:44:23 +0000 (19:44 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Tue, 19 May 2009 19:44:23 +0000 (19:44 +0000)
includes/GlobalFunctions.php
languages/messages/MessagesEn.php

index 5fb6ccc..2f11688 100644 (file)
@@ -1031,9 +1031,10 @@ function wfShowingResultsNum( $offset, $limit, $num ) {
 function wfViewPrevNext( $offset, $limit, $link, $query = '', $atend = false ) {
        global $wgLang;
        $fmtLimit = $wgLang->formatNum( $limit );
+       // FIXME: Why on earth this needs one message for the text and another one for tooltip??
        # Get prev/next link display text
-       $prev = wfMsgHtml( 'prevn', $fmtLimit );
-       $next = wfMsgHtml( 'nextn', $fmtLimit );
+       $prev =  wfMsgExt( 'prevn', array('parsemag','escape'), $fmtLimit );
+       $next =  wfMsgExt( 'nextn', array('parsemag','escape'), $fmtLimit );
        # Get prev/next link title text
        $pTitle = wfMsgExt( 'prevn-title', array('parsemag','escape'), $fmtLimit );
        $nTitle = wfMsgExt( 'nextn-title', array('parsemag','escape'), $fmtLimit );
index c41999a..1bfa970 100644 (file)
@@ -1438,8 +1438,8 @@ You can [[:\$1|create this page]].",
 'notitlematches'                   => 'No page title matches',
 'textmatches'                      => 'Page text matches',
 'notextmatches'                    => 'No page text matches',
-'prevn'                            => 'previous $1',
-'nextn'                            => 'next $1',
+'prevn'                            => 'previous {{PLURAL:$1|$1}}',
+'nextn'                            => 'next {{PLURAL:$1|$1}}',
 'prevn-title'                      => 'Previous $1 {{PLURAL:$1|result|results}}',
 'nextn-title'                      => 'Next $1 {{PLURAL:$1|result|results}}',
 'shown-title'                      => 'Show $1 {{PLURAL:$1|result|results}} per page',