r94633 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94632‎ | r94633 | r94634 >
Date:13:12, 16 August 2011
Author:siebrand
Status:ok
Tags:
Comment:
Localise numbers.
Modified paths:
  • /trunk/extensions/SocialProfile/UserStats/GenerateTopUsersReport.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SocialProfile/UserStats/GenerateTopUsersReport.php
@@ -208,14 +208,14 @@
209209 ) . "\n\n";
210210 $pageContent .= "=={$winners}==\n\n<br />\n";
211211
212 - $pageContent .= '==' . wfMsgForContent( 'user-stats-full-top', $user_count ) . "==\n\n";
 212+ $pageContent .= '==' . wfMsgForContent( 'user-stats-full-top', $wgContLang->formatNum( $user_count ) ) . "==\n\n";
213213
214214 foreach( $users as $user ) {
215215 $userTitle = Title::makeTitle( NS_USER, $user['user_name'] );
216216 $pageContent .= wfMsgExt(
217217 'user-stats-report-row',
218218 array( 'content', 'parsemag' ),
219 - $user['rank'],
 219+ $wgContLang->formatNum( $user['rank'] ),
220220 $user['user_name'],
221221 $wgContLang->formatNum( $user['points'] )
222222 ) . "\n\n";
@@ -285,4 +285,4 @@
286286 $out .= '</div>'; // .top-users
287287 $wgOut->addHTML( $out );
288288 }
289 -}
\ No newline at end of file
 289+}

Status & tagging log