Index: trunk/extensions/ContributionScores/ContributionScores_body.php |
— | — | @@ -181,13 +181,13 @@ |
182 | 182 | $limit = 10; |
183 | 183 | if ( is_null( $days ) || $days < 0 ) |
184 | 184 | $days = 7; |
185 | | - |
| 185 | + |
186 | 186 | if ( $days > 0 ) { |
187 | | - $reportTitle = wfMsg( 'contributionscores-days', $days ); |
| 187 | + $reportTitle = wfMsgExt( 'contributionscores-days', 'parsemag', $days ); |
188 | 188 | } else { |
189 | 189 | $reportTitle = wfMsg( 'contributionscores-allrevisions' ); |
190 | 190 | } |
191 | | - $reportTitle .= " " . wfMsg( 'contributionscores-top', $limit ); |
| 191 | + $reportTitle .= " " . wfMsgExt( 'contributionscores-top', 'parsemag', $limit ); |
192 | 192 | $title = Xml::element( 'h4', array( 'class' => 'contributionscores-title' ), $reportTitle ) . "\n"; |
193 | 193 | $wgOut->addHTML( $this->genContributionScoreTable( $days, $limit, $title, $options ) ); |
194 | 194 | } |
— | — | @@ -206,11 +206,11 @@ |
207 | 207 | |
208 | 208 | foreach ( $wgContribScoreReports as $scoreReport) { |
209 | 209 | if ( $scoreReport[0] > 0 ) { |
210 | | - $reportTitle = wfMsg( 'contributionscores-days', $scoreReport[0] ); |
| 210 | + $reportTitle = wfMsgExt( 'contributionscores-days', 'parsemag', $scoreReport[0] ); |
211 | 211 | } else { |
212 | 212 | $reportTitle = wfMsg( 'contributionscores-allrevisions' ); |
213 | 213 | } |
214 | | - $reportTitle .= " " . wfMsg('contributionscores-top', $scoreReport[1] ); |
| 214 | + $reportTitle .= " " . wfMsgExt('contributionscores-top', 'parsemag', $scoreReport[1] ); |
215 | 215 | $title = Xml::element( 'h2', array( 'class' => 'contributionscores-title' ), $reportTitle ) . "\n"; |
216 | 216 | $wgOut->addHTML( $title ); |
217 | 217 | $wgOut->addHTML( $this->genContributionScoreTable( $scoreReport[0], $scoreReport[1] ) ); |
Index: trunk/extensions/ContributionScores/ContributionScores.i18n.php |
— | — | @@ -1,5 +1,4 @@ |
2 | 2 | <?php |
3 | | -#coding: utf-8 |
4 | 3 | /** |
5 | 4 | * Internationalisation file for extension ContributionScores. |
6 | 5 | * |
— | — | @@ -17,7 +16,7 @@ |
18 | 17 | Scores calculated in this manner weight edit diversity over edit volume. |
19 | 18 | Basically, this score measures primarily unique pages edited, with consideration for high edit volume - assumed to be a higher quality page.", |
20 | 19 | 'contributionscores-top' => '(Top $1)', |
21 | | - 'contributionscores-days' => 'Last $1 days', |
| 20 | + 'contributionscores-days' => 'Last {{PLURAL:$1|day|$1 days}}', |
22 | 21 | 'contributionscores-allrevisions' => 'All revisions', |
23 | 22 | 'contributionscores-score' => 'Score', |
24 | 23 | 'contributionscores-pages' => 'Pages', |