r50790 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50789‎ | r50790 | r50791 >
Date:19:44, 19 May 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
* Fix plural issues
Modified paths:
  • /trunk/phase3/includes/GlobalFunctions.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/GlobalFunctions.php
@@ -1031,9 +1031,10 @@
10321032 function wfViewPrevNext( $offset, $limit, $link, $query = '', $atend = false ) {
10331033 global $wgLang;
10341034 $fmtLimit = $wgLang->formatNum( $limit );
 1035+ // FIXME: Why on earth this needs one message for the text and another one for tooltip??
10351036 # Get prev/next link display text
1036 - $prev = wfMsgHtml( 'prevn', $fmtLimit );
1037 - $next = wfMsgHtml( 'nextn', $fmtLimit );
 1037+ $prev = wfMsgExt( 'prevn', array('parsemag','escape'), $fmtLimit );
 1038+ $next = wfMsgExt( 'nextn', array('parsemag','escape'), $fmtLimit );
10381039 # Get prev/next link title text
10391040 $pTitle = wfMsgExt( 'prevn-title', array('parsemag','escape'), $fmtLimit );
10401041 $nTitle = wfMsgExt( 'nextn-title', array('parsemag','escape'), $fmtLimit );
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -1438,8 +1438,8 @@
14391439 'notitlematches' => 'No page title matches',
14401440 'textmatches' => 'Page text matches',
14411441 'notextmatches' => 'No page text matches',
1442 -'prevn' => 'previous $1',
1443 -'nextn' => 'next $1',
 1442+'prevn' => 'previous {{PLURAL:$1|$1}}',
 1443+'nextn' => 'next {{PLURAL:$1|$1}}',
14441444 'prevn-title' => 'Previous $1 {{PLURAL:$1|result|results}}',
14451445 'nextn-title' => 'Next $1 {{PLURAL:$1|result|results}}',
14461446 'shown-title' => 'Show $1 {{PLURAL:$1|result|results}} per page',

Status & tagging log