r47533 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47532‎ | r47533 | r47534 >
Date:09:45, 20 February 2009
Author:siebrand
Status:deferred
Tags:
Comment:
Use wfMsgExt instead of CommunityVoice::getMessage() to be able to support plural.
Modified paths:
  • /trunk/extensions/CommunityVoice/Modules/Ratings.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CommunityVoice/Modules/Ratings.php
@@ -177,9 +177,8 @@
178178 'cv_ratings_scale_' . $args['category'] . '_' . $args['title']
179179 );
180180 // Gets stats message
181 - $stats = CommunityVoice::getMessage(
182 - 'ratings', 'scale-stats', array( round( $rating, 1 ), $totalVotes )
183 - );
 181+ $stats = wfMsgExt( 'communityvoice-ratings-scale-stats', array( 'parsemag' ), round( $rating, 1 ), $totalVotes );
 182+
184183 // Begins rating scale
185184 $htmlOut = Html::open(
186185 'div',

Status & tagging log