r47537 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47536‎ | r47537 | r47538 >
Date:10:31, 20 February 2009
Author:siebrand
Status:deferred
Tags:
Comment:
Number formatting in 'communityvoice-ratings-scale-stats'
Modified paths:
  • /trunk/extensions/CommunityVoice/Modules/Ratings.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CommunityVoice/Modules/Ratings.php
@@ -140,7 +140,7 @@
141141 $args,
142142 $parser
143143 ) {
144 - global $wgUser, $wgTitle;
 144+ global $wgUser, $wgTitle, $wgLang;
145145 global $egCommunityVoiceResourcesPath;
146146 // Disable caching
147147 $parser->disableCache();
@@ -177,7 +177,7 @@
178178 'cv_ratings_scale_' . $args['category'] . '_' . $args['title']
179179 );
180180 // Gets stats message
181 - $stats = wfMsgExt( 'communityvoice-ratings-scale-stats', array( 'parsemag' ), round( $rating, 1 ), $totalVotes );
 181+ $stats = wfMsgExt( 'communityvoice-ratings-scale-stats', array( 'parsemag' ), $wgLang->formatnum( round( $rating, 1 ) ), $wgLang->formatnum( $totalVotes ) );
182182
183183 // Begins rating scale
184184 $htmlOut = Html::open(

Status & tagging log