r44679 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44678‎ | r44679 | r44680 >
Date:18:09, 16 December 2008
Author:ialex
Status:ok
Tags:
Comment:
Per nikerabbit: fix for r44675: use wfMsgExt() rather than wfMsg() so that plural is correctly parsed
Modified paths:
  • /trunk/extensions/UserWelcome/UserWelcome.php (modified) (history)

Diff [purge]

Index: trunk/extensions/UserWelcome/UserWelcome.php
@@ -81,12 +81,13 @@
8282 if( $wgUserLevels ){
8383 $output .= "<div class=\"mp-welcome-points\">
8484 <div class=\"points-and-level\">
85 - <div class=\"total-points\">".wfMsg('mp-welcome-points', $stats_data["points"])."</div>
 85+ <div class=\"total-points\">".wfMsgExt( 'mp-welcome-points', array( 'parsemag' ), $stats_data["points"] )."</div>
8686 <div class=\"honorific-level\"><a href=\"".$level_link->escapeFullURL()."\">({$user_level->getLevelName()})</a></div>
8787 </div>
8888 <div class=\"cleared\"></div>
8989 <div class=\"needed-points\">
90 - ".wfMsg('mp-welcome-needed-points', $level_link->escapeFullURL(), $user_level->getNextLevelName(), $user_level->getPointsNeededToAdvance())."
 90+ " . wfMsgExt( 'mp-welcome-needed-points', array( 'parsemag' ), $level_link->escapeFullURL(),
 91+ $user_level->getNextLevelName(), $user_level->getPointsNeededToAdvance() ) . "
9192 </div>
9293 </div>";
9394 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r44675The message mp-welcome-needed-points needs PLURAL.purodha16:37, 16 December 2008

Status & tagging log