r49474 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49473‎ | r49474 | r49475 >
Date:18:46, 14 April 2009
Author:raymond
Status:ok
Tags:
Comment:
Enable PLURAL
Modified paths:
  • /trunk/extensions/ContributionScores/ContributionScores.i18n.php (modified) (history)
  • /trunk/extensions/ContributionScores/ContributionScores_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ContributionScores/ContributionScores_body.php
@@ -181,13 +181,13 @@
182182 $limit = 10;
183183 if ( is_null( $days ) || $days < 0 )
184184 $days = 7;
185 -
 185+
186186 if ( $days > 0 ) {
187 - $reportTitle = wfMsg( 'contributionscores-days', $days );
 187+ $reportTitle = wfMsgExt( 'contributionscores-days', 'parsemag', $days );
188188 } else {
189189 $reportTitle = wfMsg( 'contributionscores-allrevisions' );
190190 }
191 - $reportTitle .= " " . wfMsg( 'contributionscores-top', $limit );
 191+ $reportTitle .= " " . wfMsgExt( 'contributionscores-top', 'parsemag', $limit );
192192 $title = Xml::element( 'h4', array( 'class' => 'contributionscores-title' ), $reportTitle ) . "\n";
193193 $wgOut->addHTML( $this->genContributionScoreTable( $days, $limit, $title, $options ) );
194194 }
@@ -206,11 +206,11 @@
207207
208208 foreach ( $wgContribScoreReports as $scoreReport) {
209209 if ( $scoreReport[0] > 0 ) {
210 - $reportTitle = wfMsg( 'contributionscores-days', $scoreReport[0] );
 210+ $reportTitle = wfMsgExt( 'contributionscores-days', 'parsemag', $scoreReport[0] );
211211 } else {
212212 $reportTitle = wfMsg( 'contributionscores-allrevisions' );
213213 }
214 - $reportTitle .= " " . wfMsg('contributionscores-top', $scoreReport[1] );
 214+ $reportTitle .= " " . wfMsgExt('contributionscores-top', 'parsemag', $scoreReport[1] );
215215 $title = Xml::element( 'h2', array( 'class' => 'contributionscores-title' ), $reportTitle ) . "\n";
216216 $wgOut->addHTML( $title );
217217 $wgOut->addHTML( $this->genContributionScoreTable( $scoreReport[0], $scoreReport[1] ) );
Index: trunk/extensions/ContributionScores/ContributionScores.i18n.php
@@ -1,5 +1,4 @@
22 <?php
3 -#coding: utf-8
43 /**
54 * Internationalisation file for extension ContributionScores.
65 *
@@ -17,7 +16,7 @@
1817 Scores calculated in this manner weight edit diversity over edit volume.
1918 Basically, this score measures primarily unique pages edited, with consideration for high edit volume - assumed to be a higher quality page.",
2019 'contributionscores-top' => '(Top $1)',
21 - 'contributionscores-days' => 'Last $1 days',
 20+ 'contributionscores-days' => 'Last {{PLURAL:$1|day|$1 days}}',
2221 'contributionscores-allrevisions' => 'All revisions',
2322 'contributionscores-score' => 'Score',
2423 'contributionscores-pages' => 'Pages',

Status & tagging log