From: Niklas Laxström Date: Tue, 19 May 2009 19:44:23 +0000 (+0000) Subject: * Fix plural issues X-Git-Tag: 1.31.0-rc.0~41733 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=cf60c784fb6a9d91bd1b43e4610865f07062964c;p=lhc%2Fweb%2Fwiklou.git * Fix plural issues --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 5fb6ccc23b..2f11688511 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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 ); diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index c41999afd6..1bfa97048d 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -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',