r94632 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94631‎ | r94632 | r94633 >
Date:13:01, 16 August 2011
Author:siebrand
Status:ok
Tags:
Comment:
Add plural support.
Modified paths:
  • /trunk/extensions/SocialProfile/UserStats/GenerateTopUsersReport.php (modified) (history)
  • /trunk/extensions/SocialProfile/UserStats/UserStats.i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SocialProfile/UserStats/GenerateTopUsersReport.php
@@ -212,8 +212,9 @@
213213
214214 foreach( $users as $user ) {
215215 $userTitle = Title::makeTitle( NS_USER, $user['user_name'] );
216 - $pageContent .= wfMsgForContent(
 216+ $pageContent .= wfMsgExt(
217217 'user-stats-report-row',
 218+ array( 'content', 'parsemag' ),
218219 $user['rank'],
219220 $user['user_name'],
220221 $wgContLang->formatNum( $user['points'] )
@@ -224,8 +225,9 @@
225226 $userTitle->getFullURL() . "' >" . $user['user_name'] . "</a>
226227 </span>";
227228
228 - $out .= '<span class="top-fan-points">' . wfMsgWikiHtml(
 229+ $out .= '<span class="top-fan-points">' . wfMsgExt(
229230 'user-stats-report-points',
 231+ array( 'content', 'parsemag' ),
230232 $wgContLang->formatNum( $user['points'] )
231233 ) . '</span>
232234 </div>';
Index: trunk/extensions/SocialProfile/UserStats/UserStats.i18n.php
@@ -76,11 +76,11 @@
7777 'generatetopusersreport' => 'Generate Top Users Report',
7878 'user-stats-weekly-winners' => 'Weekly {{PLURAL:$1|Winner|Winners}}',
7979 'user-stats-monthly-winners' => 'Monthly {{PLURAL:$1|Winner|Winners}}',
80 - 'user-stats-weekly-win-congratulations' => 'Congratulations to the following {{PLURAL:$1|user|users}}, who earned a weekly win and $2 extra points!',
81 - 'user-stats-monthly-win-congratulations' => 'Congratulations to the following {{PLURAL:$1|user|users}}, who earned a monthly win and $2 extra points!',
 80+ 'user-stats-weekly-win-congratulations' => 'Congratulations to the following {{PLURAL:$1|user|users}}, who earned a weekly win and $2 extra {{PLURAL:$2|point|points}}!',
 81+ 'user-stats-monthly-win-congratulations' => 'Congratulations to the following {{PLURAL:$1|user|users}}, who earned a monthly win and $2 extra {{PLURAL:$2|point|points}}!',
8282 'user-stats-full-top' => 'Full Top $1',
83 - 'user-stats-report-row' => "($1) [[User:$2|$2]] - '''$3''' points",
84 - 'user-stats-report-points' => "'''$1''' points",
 83+ 'user-stats-report-row' => "($1) [[User:$2|$2]] - '''$3''' {{PLURAL:$3|point|points}}!",
 84+ 'user-stats-report-points' => "'''$1''' {{PLURAL:$1|point|points}}!",
8585 'user-stats-report-generation-note' => 'this page was generated automatically',
8686 'user-stats-report-weekly-edit-summary' => 'automated weekly user report',
8787 'user-stats-report-monthly-edit-summary' => 'automated monthly user report',

Status & tagging log