Changed from wfMsgForContent to wfMsg to allow user pref. localization. Added Spanish messages (translation by EmuAGR)

This commit is contained in:
Tim Laqua 2007-09-02 19:15:33 +00:00
parent 868e6e6b3b
commit a4fb8b70fe
2 changed files with 16 additions and 5 deletions

View file

@ -103,15 +103,15 @@ class ContributionScores extends SpecialPage
array(0,50));
}
$wgOut->addWikiText (wfMsgForContent('contributionscores-info'));
$wgOut->addWikiText (wfMsg('contributionscores-info'));
foreach ( $contribScoreReports as $scoreReport) {
if ( $scoreReport[0] > 0 ) {
$reportTitle = wfMsgForContent('contributionscores-days', $scoreReport[0]);
$reportTitle = wfMsg('contributionscores-days', $scoreReport[0]);
} else {
$reportTitle = wfMsgForContent('contributionscores-allrevisions');
$reportTitle = wfMsg('contributionscores-allrevisions');
}
$reportTitle .= " " . wfMsgForContent('contributionscores-top', $scoreReport[1]);
$reportTitle .= " " . wfMsg('contributionscores-top', $scoreReport[1]);
$wgOut->addWikiText ("== $reportTitle ==\n");
$wgOut->addHtml( $this->genContributionScoreTable($scoreReport[0],$scoreReport[1]));
}