From cf60c784fb6a9d91bd1b43e4610865f07062964c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Tue, 19 May 2009 19:44:23 +0000 Subject: [PATCH] * Fix plural issues --- includes/GlobalFunctions.php | 5 +++-- languages/messages/MessagesEn.php | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) 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', -- 2.20.1