r46254 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46253‎ | r46254 | r46255 >
Date:11:35, 26 January 2009
Author:siebrand
Status:deferred
Tags:
Comment:
Fix on r46238. Actually support plural in code, too.
Modified paths:
  • /trunk/extensions/SocialProfile/UserProfile/UserProfilePage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SocialProfile/UserProfile/UserProfilePage.php
@@ -145,15 +145,15 @@
146146 </div>
147147 <div class="cleared"></div>
148148 <div class="profile-info-container bold-fix">'.
149 - $this->getUserStatsRow( wfMsg( 'user-stats-edits', $stats_data['edits'] ), $stats_data['edits'] ) .
150 - $this->getUserStatsRow( wfMsg( 'user-stats-votes', $stats_data['votes'] ), $stats_data['votes'] ) .
151 - $this->getUserStatsRow( wfMsg( 'user-stats-comments', $stats_data['comments'] ), $stats_data['comments'] ) .
152 - $this->getUserStatsRow( wfMsg( 'user-stats-recruits', $stats_data['recruits'] ), $stats_data['recruits'] ) .
153 - $this->getUserStatsRow( wfMsg( 'user-stats-poll-votes', $stats_data['poll_votes'] ), $stats_data['poll_votes'] ) .
154 - $this->getUserStatsRow( wfMsg( 'user-stats-picture-game-votes', $stats_data['picture_game_votes']), $stats_data['picture_game_votes'] ) .
155 - $this->getUserStatsRow( wfMsg( 'user-stats-quiz-points', $stats_data['quiz_points'] ), $stats_data['quiz_points'] );
 149+ $this->getUserStatsRow( wfMsgExt( 'user-stats-edits', array( 'parsemag' ), $stats_data['edits'] ), $stats_data['edits'] ) .
 150+ $this->getUserStatsRow( wfMsgExt( 'user-stats-votes', array( 'parsemag' ), $stats_data['votes'] ), $stats_data['votes'] ) .
 151+ $this->getUserStatsRow( wfMsgExt( 'user-stats-comments', array( 'parsemag' ), $stats_data['comments'] ), $stats_data['comments'] ) .
 152+ $this->getUserStatsRow( wfMsgExt( 'user-stats-recruits', array( 'parsemag' ), $stats_data['recruits'] ), $stats_data['recruits'] ) .
 153+ $this->getUserStatsRow( wfMsgExt( 'user-stats-poll-votes', array( 'parsemag' ), $stats_data['poll_votes'] ), $stats_data['poll_votes'] ) .
 154+ $this->getUserStatsRow( wfMsgExt( 'user-stats-picture-game-votes', array( 'parsemag' ), $stats_data['picture_game_votes']), $stats_data['picture_game_votes'] ) .
 155+ $this->getUserStatsRow( wfMsgExt( 'user-stats-quiz-points', array( 'parsemag' ), $stats_data['quiz_points'] ), $stats_data['quiz_points'] );
156156 if( $stats_data['currency'] != '10,000' )
157 - $output .= $this->getUserStatsRow( wfMsg( 'user-stats-pick-points', $stats_data['currency'] ), $stats_data['currency'] );
 157+ $output .= $this->getUserStatsRow( wfMsgExt( 'user-stats-pick-points', array( 'parsemag' ), $stats_data['currency'] ), $stats_data['currency'] );
158158 $output .= '</div>';
159159 }
160160

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r46238Add plural support for user statssiebrand23:24, 25 January 2009

Status & tagging log