Enable PLURAL
This commit is contained in:
parent
4214f1b531
commit
ce236a4ae9
2 changed files with 6 additions and 7 deletions
|
@ -1,5 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
#coding: utf-8
|
|
||||||
/**
|
/**
|
||||||
* Internationalisation file for extension ContributionScores.
|
* Internationalisation file for extension ContributionScores.
|
||||||
*
|
*
|
||||||
|
@ -17,7 +16,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 $1 days',
|
'contributionscores-days' => 'Last {{PLURAL:$1|day|$1 days}}',
|
||||||
'contributionscores-allrevisions' => 'All revisions',
|
'contributionscores-allrevisions' => 'All revisions',
|
||||||
'contributionscores-score' => 'Score',
|
'contributionscores-score' => 'Score',
|
||||||
'contributionscores-pages' => 'Pages',
|
'contributionscores-pages' => 'Pages',
|
||||||
|
|
|
@ -181,13 +181,13 @@ class ContributionScores extends IncludableSpecialPage
|
||||||
$limit = 10;
|
$limit = 10;
|
||||||
if ( is_null( $days ) || $days < 0 )
|
if ( is_null( $days ) || $days < 0 )
|
||||||
$days = 7;
|
$days = 7;
|
||||||
|
|
||||||
if ( $days > 0 ) {
|
if ( $days > 0 ) {
|
||||||
$reportTitle = wfMsg( 'contributionscores-days', $days );
|
$reportTitle = wfMsgExt( 'contributionscores-days', 'parsemag', $days );
|
||||||
} else {
|
} else {
|
||||||
$reportTitle = wfMsg( 'contributionscores-allrevisions' );
|
$reportTitle = wfMsg( 'contributionscores-allrevisions' );
|
||||||
}
|
}
|
||||||
$reportTitle .= " " . wfMsg( 'contributionscores-top', $limit );
|
$reportTitle .= " " . wfMsgExt( 'contributionscores-top', 'parsemag', $limit );
|
||||||
$title = Xml::element( 'h4', array( 'class' => 'contributionscores-title' ), $reportTitle ) . "\n";
|
$title = Xml::element( 'h4', array( 'class' => 'contributionscores-title' ), $reportTitle ) . "\n";
|
||||||
$wgOut->addHTML( $this->genContributionScoreTable( $days, $limit, $title, $options ) );
|
$wgOut->addHTML( $this->genContributionScoreTable( $days, $limit, $title, $options ) );
|
||||||
}
|
}
|
||||||
|
@ -206,11 +206,11 @@ class ContributionScores extends IncludableSpecialPage
|
||||||
|
|
||||||
foreach ( $wgContribScoreReports as $scoreReport) {
|
foreach ( $wgContribScoreReports as $scoreReport) {
|
||||||
if ( $scoreReport[0] > 0 ) {
|
if ( $scoreReport[0] > 0 ) {
|
||||||
$reportTitle = wfMsg( 'contributionscores-days', $scoreReport[0] );
|
$reportTitle = wfMsgExt( 'contributionscores-days', 'parsemag', $scoreReport[0] );
|
||||||
} else {
|
} else {
|
||||||
$reportTitle = wfMsg( 'contributionscores-allrevisions' );
|
$reportTitle = wfMsg( 'contributionscores-allrevisions' );
|
||||||
}
|
}
|
||||||
$reportTitle .= " " . wfMsg('contributionscores-top', $scoreReport[1] );
|
$reportTitle .= " " . wfMsgExt('contributionscores-top', 'parsemag', $scoreReport[1] );
|
||||||
$title = Xml::element( 'h2', array( 'class' => 'contributionscores-title' ), $reportTitle ) . "\n";
|
$title = Xml::element( 'h2', array( 'class' => 'contributionscores-title' ), $reportTitle ) . "\n";
|
||||||
$wgOut->addHTML( $title );
|
$wgOut->addHTML( $title );
|
||||||
$wgOut->addHTML( $this->genContributionScoreTable( $scoreReport[0], $scoreReport[1] ) );
|
$wgOut->addHTML( $this->genContributionScoreTable( $scoreReport[0], $scoreReport[1] ) );
|
||||||
|
|
Loading…
Add table
Reference in a new issue