Changed from wfMsgForContent to wfMsg to allow user pref. localization. Added Spanish messages (translation by EmuAGR)
This commit is contained in:
parent
868e6e6b3b
commit
a4fb8b70fe
2 changed files with 16 additions and 5 deletions
|
@ -55,7 +55,18 @@ $allMessages = array(
|
||||||
'contributionscores-days' => '最近$1天',
|
'contributionscores-days' => '最近$1天',
|
||||||
'contributionscores-allrevisions' => '全部修訂'
|
'contributionscores-allrevisions' => '全部修訂'
|
||||||
),
|
),
|
||||||
|
'es' => array(
|
||||||
|
'contributionscores' => 'Puntuaciones por contribuir',
|
||||||
|
'contributionscores-info' => "Las puntuaciones son calculadas siguiendo:\n".
|
||||||
|
"*1 punto por cada página única editada\n".
|
||||||
|
"*Raíz cuadrada de (Ediciones totales efectuadas) - (Páginas totales únicas) x 2\n".
|
||||||
|
"Las puntuaciones son calculadas de esta manera considerando la diversidad sobre el volumen de edición.".
|
||||||
|
"Básicamente, esta puntuación mide fundamentalmente las páginas únicas editadas, considerando que un alto ".
|
||||||
|
"volumen de edición supone que es un artículo de mayor calidad.",
|
||||||
|
'contributionscores-top' => '(Top $1)',
|
||||||
|
'contributionscores-days' => 'Últimos $1 días',
|
||||||
|
'contributionscores-allrevisions' => 'Estadísticas globales'
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
$allMessages['zh'] = $allMessages['zh-hans'];
|
$allMessages['zh'] = $allMessages['zh-hans'];
|
||||||
|
|
|
@ -103,15 +103,15 @@ class ContributionScores extends SpecialPage
|
||||||
array(0,50));
|
array(0,50));
|
||||||
}
|
}
|
||||||
|
|
||||||
$wgOut->addWikiText (wfMsgForContent('contributionscores-info'));
|
$wgOut->addWikiText (wfMsg('contributionscores-info'));
|
||||||
|
|
||||||
foreach ( $contribScoreReports as $scoreReport) {
|
foreach ( $contribScoreReports as $scoreReport) {
|
||||||
if ( $scoreReport[0] > 0 ) {
|
if ( $scoreReport[0] > 0 ) {
|
||||||
$reportTitle = wfMsgForContent('contributionscores-days', $scoreReport[0]);
|
$reportTitle = wfMsg('contributionscores-days', $scoreReport[0]);
|
||||||
} else {
|
} 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->addWikiText ("== $reportTitle ==\n");
|
||||||
$wgOut->addHtml( $this->genContributionScoreTable($scoreReport[0],$scoreReport[1]));
|
$wgOut->addHtml( $this->genContributionScoreTable($scoreReport[0],$scoreReport[1]));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue