r25412 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25411‎ | r25412 | r25413 >
Date:19:15, 2 September 2007
Author:tlaqua
Status:old
Tags:
Comment:
Changed from wfMsgForContent to wfMsg to allow user pref. localization. Added Spanish messages (translation by EmuAGR)
Modified paths:
  • /trunk/extensions/ContributionScores/ContributionScores.i18n.php (modified) (history)
  • /trunk/extensions/ContributionScores/ContributionScores_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ContributionScores/ContributionScores_body.php
@@ -103,15 +103,15 @@
104104 array(0,50));
105105 }
106106
107 - $wgOut->addWikiText (wfMsgForContent('contributionscores-info'));
 107+ $wgOut->addWikiText (wfMsg('contributionscores-info'));
108108
109109 foreach ( $contribScoreReports as $scoreReport) {
110110 if ( $scoreReport[0] > 0 ) {
111 - $reportTitle = wfMsgForContent('contributionscores-days', $scoreReport[0]);
 111+ $reportTitle = wfMsg('contributionscores-days', $scoreReport[0]);
112112 } else {
113 - $reportTitle = wfMsgForContent('contributionscores-allrevisions');
 113+ $reportTitle = wfMsg('contributionscores-allrevisions');
114114 }
115 - $reportTitle .= " " . wfMsgForContent('contributionscores-top', $scoreReport[1]);
 115+ $reportTitle .= " " . wfMsg('contributionscores-top', $scoreReport[1]);
116116 $wgOut->addWikiText ("== $reportTitle ==\n");
117117 $wgOut->addHtml( $this->genContributionScoreTable($scoreReport[0],$scoreReport[1]));
118118 }
Index: trunk/extensions/ContributionScores/ContributionScores.i18n.php
@@ -55,7 +55,18 @@
5656 'contributionscores-days' => '最近$1天',
5757 'contributionscores-allrevisions' => '全部修訂'
5858 ),
59 -
 59+ 'es' => array(
 60+ 'contributionscores' => 'Puntuaciones por contribuir',
 61+ 'contributionscores-info' => "Las puntuaciones son calculadas siguiendo:\n".
 62+ "*1 punto por cada p�gina �nica editada\n".
 63+ "*Ra�z cuadrada de (Ediciones totales efectuadas) - (P�ginas totales �nicas) x 2\n".
 64+ "Las puntuaciones son calculadas de esta manera considerando la diversidad sobre el volumen de edici�n.".
 65+ "B�sicamente, esta puntuaci�n mide fundamentalmente las p�ginas �nicas editadas, considerando que un alto ".
 66+ "volumen de edici�n supone que es un art�culo de mayor calidad.",
 67+ 'contributionscores-top' => '(Top $1)',
 68+ 'contributionscores-days' => '�ltimos $1 d�as',
 69+ 'contributionscores-allrevisions' => 'Estad�sticas globales'
 70+ ),
6071 );
6172
6273 $allMessages['zh'] = $allMessages['zh-hans'];

Status & tagging log