Per r104454#c26637, it's possible to use a localized number in PLURAL

This commit is contained in:
Robin Pepermans 2011-11-28 16:52:50 +00:00
parent 21da2d00f6
commit 1b8b66610a
2 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@ $messages['en'] = array(
Scores calculated in this manner weight edit diversity over edit volume. Scores calculated in this manner weight edit diversity over edit volume.
Basically, this score measures primarily unique pages edited, with consideration for high edit volume - assumed to be a higher quality page.", Basically, this score measures primarily unique pages edited, with consideration for high edit volume - assumed to be a higher quality page.",
'contributionscores-top' => '(Top $1)', 'contributionscores-top' => '(Top $1)',
'contributionscores-days' => 'Last {{PLURAL:$1|day|$2 days}}', 'contributionscores-days' => 'Last {{PLURAL:$1|day|$1 days}}',
'contributionscores-allrevisions' => 'All time', 'contributionscores-allrevisions' => 'All time',
'contributionscores-score' => 'Score', 'contributionscores-score' => 'Score',
'contributionscores-pages' => 'Pages', 'contributionscores-pages' => 'Pages',
@ -42,7 +42,7 @@ $messages['qqq'] = array(
:COUNT(rev_id) AS rev_count :COUNT(rev_id) AS rev_count
:page_count+SQRT(rev_count-page_count)*2 AS wiki_rank', :page_count+SQRT(rev_count-page_count)*2 AS wiki_rank',
'contributionscores-top' => 'Second part of the headings of [[Special:ContributionScores]]. PLURAL is supported but not used by the English original message.', 'contributionscores-top' => 'Second part of the headings of [[Special:ContributionScores]]. PLURAL is supported but not used by the English original message.',
'contributionscores-days' => 'Heading of [[Special:ContributionScores]]. Parameter $1 is the number of days for PLURAL use; $2 is a localized number.', 'contributionscores-days' => 'Heading of [[Special:ContributionScores]].',
'contributionscores-allrevisions' => 'Used as a header of [[Special:ContributionScores]]', 'contributionscores-allrevisions' => 'Used as a header of [[Special:ContributionScores]]',
'contributionscores-pages' => '{{Identical|Pages}}', 'contributionscores-pages' => '{{Identical|Pages}}',
'contributionscores-username' => '{{Identical|Username}}', 'contributionscores-username' => '{{Identical|Username}}',

View file

@ -182,7 +182,7 @@ class ContributionScores extends IncludableSpecialPage {
} }
if ( $days > 0 ) { if ( $days > 0 ) {
$reportTitle = wfMsgExt( 'contributionscores-days', 'parsemag', $days, $wgLang->formatNum( $days ) ); $reportTitle = wfMsgExt( 'contributionscores-days', 'parsemag', $wgLang->formatNum( $days ) );
} else { } else {
$reportTitle = wfMsg( 'contributionscores-allrevisions' ); $reportTitle = wfMsg( 'contributionscores-allrevisions' );
} }
@ -211,7 +211,7 @@ class ContributionScores extends IncludableSpecialPage {
$days = $scoreReport[0]; $days = $scoreReport[0];
$revs = $scoreReport[1]; $revs = $scoreReport[1];
if ( $days > 0 ) { if ( $days > 0 ) {
$reportTitle = wfMsgExt( 'contributionscores-days', 'parsemag', $days, $wgLang->formatNum( $days ) ); $reportTitle = wfMsgExt( 'contributionscores-days', 'parsemag', $wgLang->formatNum( $days ) );
} else { } else {
$reportTitle = wfMsg( 'contributionscores-allrevisions' ); $reportTitle = wfMsg( 'contributionscores-allrevisions' );
} }