Compare commits

..

60 Commits

Author SHA1 Message Date
Translation updater bot
486fa570d9 Localisation updates from http://translatewiki.net.
Change-Id: I4f5783fee0c868d4a23c0109a4b16ffe80e53a8a
2012-11-05 21:11:29 +00:00
Translation updater bot
f080c3ce10 Localisation updates from http://translatewiki.net.
Change-Id: Ie96b9121f33b6ffa42b74d5f9f527f2267334628
2012-10-29 21:46:50 +00:00
Translation updater bot
3031f91dbc Localisation updates from http://translatewiki.net.
Change-Id: I03e25cff11ecc28f40ccc76c960231a43c298600
2012-10-27 21:11:41 +00:00
Translation updater bot
1ca172c6e0 Localisation updates from http://translatewiki.net.
Change-Id: I644c8487addd98ead594fdb8f800c6a7b38fb9e7
2012-10-26 19:39:25 +00:00
Translation updater bot
4c860f6bef Localisation updates from http://translatewiki.net.
Change-Id: I28f8c9abb92cb565db4472f4e79475acee68c688
2012-10-23 20:04:50 +00:00
Siebrand Mazeland
7354e142d2 Update HTML5 compliance.
Also moved $lang assignment out of loop and escaped language code.

Change-Id: I1df4e5c71a4ed161bdacddd7eb45c23963eb04ea
2012-10-23 14:09:05 +02:00
Translation updater bot
8671afa6e4 Localisation updates from http://translatewiki.net.
Change-Id: If2d3bc103d664fecdbfb7b748c31a6e59352cbd0
2012-10-22 01:12:26 +00:00
Translation updater bot
9ecfb20fda Localisation updates from http://translatewiki.net.
Change-Id: I3f5c36c22499f2ea2d1819e6250fa977d6011492
2012-10-20 20:16:42 +00:00
Translation updater bot
3a318b2213 Localisation updates from http://translatewiki.net.
Change-Id: I9eb7c1acc8e5a99a5f4d89ccb607b50daf2ae2ed
2012-10-19 20:04:08 +00:00
Translation updater bot
e9d41f2802 Localisation updates from http://translatewiki.net.
Change-Id: I9adcf68377e03138e847b50379ce22b43e000b08
2012-10-17 19:31:57 +00:00
Translation updater bot
b36c1ce02c Localisation updates from http://translatewiki.net.
Change-Id: Ife9fcf9b34f87b4cc31169b158c15c7a9d8b80fe
2012-10-16 19:17:54 +00:00
Siebrand Mazeland
b96a33abc1 Tweak 'contributionscores-info'.
Remove most of the technical background. Initiated by Shirayuki on
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Contributionscores-info/en.

Information is on https://www.mediawiki.org/wiki/Extension:ContributionScores.

Change-Id: I379af302fbcab4eaf5eb71425fecf17951891ce0
2012-10-15 17:43:53 +02:00
Translation updater bot
7a6ffab525 Localisation updates from http://translatewiki.net.
Change-Id: I7285540832e22862e00e56640ac38ab0dc938484
2012-10-02 13:39:33 +00:00
Translation updater bot
84f4a7ef4e Localisation updates from http://translatewiki.net.
Change-Id: I5831f1da5c2ef5dd02c7fae6c311798eb62ff644
2012-09-28 18:16:35 +00:00
Translation updater bot
3b23c3280c Localisation updates from http://translatewiki.net.
Change-Id: Iaa34e5979a5cd97c21c0c441042937eefab1d715
2012-09-25 19:43:02 +00:00
Translation updater bot
31cb5396c0 Localisation updates from http://translatewiki.net.
Change-Id: I59b3140f0668addb4de70a9db658dc1b78f61681
2012-09-18 19:13:30 +00:00
Translation updater bot
202862f94c Localisation updates from http://translatewiki.net.
Change-Id: I1ee320bef95097736e0ad95dd1968ead34c05ec7
2012-09-16 19:53:25 +00:00
Translation updater bot
bae10087f1 Localisation updates from http://translatewiki.net.
Change-Id: I266401eab00cd51eb194ff951c9b3d35c6947a4d
2012-09-14 21:08:41 +00:00
Translation updater bot
4a0c79e7be Localisation updates from http://translatewiki.net.
Change-Id: If896333cb6e8a74af65953c3f3277d4355b5d4c3
2012-09-13 20:42:10 +00:00
Translation updater bot
c66d73fab1 Localisation updates from http://translatewiki.net.
Change-Id: Ib38fc2feeb7b94faca3c4bd509d22161f68de007
2012-09-11 19:33:37 +00:00
Translation updater bot
0ad366000a Localisation updates from http://translatewiki.net.
Change-Id: Iac0b5b269c6411b3acb3700ffac60bf70b99df80
2012-09-05 19:17:45 +00:00
Translation updater bot
339165a1ea Localisation updates from http://translatewiki.net.
Change-Id: I848aa71a4883863a0d0454d546e2ac2b8dd4358d
2012-09-03 19:53:32 +00:00
Translation updater bot
264ef3edaf Localisation updates from http://translatewiki.net.
Change-Id: I7cd0ee2473ab5be1495001ecea85700a56b8568f
2012-08-30 19:39:17 +00:00
Translation updater bot
0eb05feefb Localisation updates from http://translatewiki.net.
Change-Id: If13a84cfc62987d7c055cb54f758206048112160
2012-08-26 20:13:56 +00:00
Translation updater bot
1490eb27d8 Localisation updates from http://translatewiki.net.
Change-Id: Iec2a5dd2ab79573a754e8409594e70598e631f7f
2012-08-25 19:00:27 +00:00
Translation updater bot
54f6bca0d9 Localisation updates from http://translatewiki.net.
Change-Id: Ia086ea727e7fc516914e66bb813f9afe94b0f40f
2012-08-23 20:07:17 +00:00
Translation updater bot
a02eed03d7 Localisation updates from http://translatewiki.net.
Change-Id: I34ec05c089d9fbc5d92472822fd6bdded42f3ef2
2012-08-20 19:18:43 +00:00
Siebrand Mazeland
08ae0e8c9c Merge "ContributionScores extension maintenance." 2012-08-18 10:59:32 +00:00
Translation updater bot
a907e0d520 Localisation updates from http://translatewiki.net.
Change-Id: Ib2c2c5e2794a065ed5948c8566ab97bf8de28bd8
2012-08-17 13:00:43 +00:00
Siebrand Mazeland
3d4fd708bb ContributionScores extension maintenance.
* Reduce usage of globals.
* Use Message class where possible.
* Update .gitignore.
* Broke some long lines.
* Updated documentation for a method.

Change-Id: Ic4c49dbcdabce2667ab140321d8618f62fe72fe8
2012-08-16 14:19:19 +02:00
Translation updater bot
4bceabbff7 Localisation updates from http://translatewiki.net.
Change-Id: Id1f3a0f6b5e441799c269e08586bade3e2a7dac8
2012-08-15 19:49:03 +00:00
Translation updater bot
1220679e98 Localisation updates from http://translatewiki.net.
Change-Id: I538a4c0dd82fe022e62f4f763bcaa29c5a0ca46b
2012-08-14 19:36:27 +00:00
Translation updater bot
57e90d522b Localisation updates from http://translatewiki.net.
Change-Id: I938dd3a2286b01415977a607a55d2155806d8049
2012-08-13 19:47:06 +00:00
Translation updater bot
de8a6e2b80 Localisation updates from http://translatewiki.net.
Change-Id: I9838de3e634f02046a088d3f211129fac63d3891
2012-08-12 20:13:35 +00:00
Translation updater bot
6eecf33f62 Localisation updates from http://translatewiki.net.
Change-Id: I67eaf782c993f340a5a9226c538f010bd4708281
2012-08-11 19:16:18 +00:00
Translation updater bot
9b2b44dfae Localisation updates from http://translatewiki.net.
Change-Id: I597a83d4052ff31e49f6ba651b1508969b79eb3b
2012-08-09 19:25:10 +00:00
Translation updater bot
6491b540d0 Localisation updates from http://translatewiki.net.
Change-Id: Iab013796b049a71d154820330b70d1a95a8ead73
2012-08-06 19:26:27 +00:00
Translation updater bot
f27d216db4 Localisation updates from http://translatewiki.net.
Change-Id: I3520ead424a0d110ebccf6948d80a3e0492c5d3d
2012-08-01 20:04:25 +00:00
Translation updater bot
0015d679a2 Localisation updates from http://translatewiki.net.
Change-Id: I5ad6bd025bdb393da680eebd771bba0f3d1df1ba
2012-07-11 07:07:55 +00:00
Translation updater bot
c4fe3f1299 Localisation updates from http://translatewiki.net.
Change-Id: Ib86e94492c0e6bae0530a4c135138f2dff911d3a
2012-07-09 20:07:40 +00:00
Translation updater bot
a9f3501885 Localisation updates from http://translatewiki.net.
Change-Id: I943db488fef989b4df855af1b0328318edcb2d12
2012-07-05 19:44:05 +00:00
Translation updater bot
48de9ffb9c Localisation updates from http://translatewiki.net.
Change-Id: I281f7feac16ae3e1d3609fca28c152164dc1706e
2012-07-01 13:51:25 +00:00
Translation updater bot
1596f72632 Localisation updates from http://translatewiki.net.
Change-Id: Ifbac9376485933d08b715896f733bfc2c6aa74b3
2012-06-30 11:33:38 +00:00
Translation updater bot
0ce5c7301a Localisation updates from http://translatewiki.net.
Change-Id: I52096f43b516b721c5bf89449ccb259dba8161ac
2012-06-27 20:03:24 +00:00
Reedy
602c9f64e6 Add .gitignore
Change-Id: I46f19b31a491a6f938fbcd3a1128fa082086fcf1
2012-06-21 19:35:57 +01:00
Chad Horohoe
597009e391 Adding .gitreview
Change-Id: Ic77eb6ad0ea2984ea5387e1978aadf5c1edc3d59
2012-06-21 12:56:21 -04:00
Siebrand Mazeland
563437b6d4 Localisation updates from http://translatewiki.net. 2012-06-14 20:11:07 +00:00
Siebrand Mazeland
d12a4b515f Localisation updates from http://translatewiki.net. 2012-06-11 14:33:12 +00:00
Raimond Spekking
ff0afca339 Localisation updates from http://translatewiki.net. 2012-06-10 20:23:48 +00:00
Raimond Spekking
39aaed456c Localisation updates from http://translatewiki.net. 2012-05-29 20:08:17 +00:00
Raimond Spekking
49ee65dd4d Localisation updates from http://translatewiki.net. 2012-05-25 20:22:40 +00:00
Siebrand Mazeland
b1cf5cd2d8 Localisation updates from http://translatewiki.net. 2012-05-23 19:28:24 +00:00
Siebrand Mazeland
229cd30f65 Localisation updates from http://translatewiki.net. 2012-05-22 22:46:23 +00:00
Siebrand Mazeland
a15633c951 Localisation updates from http://translatewiki.net. 2012-05-12 19:23:15 +00:00
Niklas Laxström
87a139a76c Localisation updates from http://translatewiki.net. 2012-04-16 16:17:08 +00:00
Niklas Laxström
f700b733a2 Translation updates for SVN extensions from translatewiki.net 2012-04-05 18:24:34 +00:00
Raimond Spekking
00e5d65eac Localisation updates for core and extension messages from translatewiki.net 2012-03-19 21:21:48 +00:00
Raimond Spekking
9643d293b4 Localisation updates for core and extension messages from translatewiki.net 2012-03-06 21:18:30 +00:00
Raimond Spekking
d8e87e1a08 Localisation updates for core and extension messages from translatewiki.net 2012-02-20 20:20:26 +00:00
Raimond Spekking
da2586fde8 Localisation updates for core and extension messages from translatewiki.net 2012-02-18 20:41:29 +00:00
6 changed files with 463 additions and 321 deletions

5
.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
.svn
*~
*.kate-swp
.*.swp
.idea

6
.gitreview Normal file
View File

@@ -0,0 +1,6 @@
[gerrit]
host=gerrit.wikimedia.org
port=29418
project=mediawiki/extensions/ContributionScores
defaultbranch=master
defaultrebase=0

View File

@@ -23,12 +23,27 @@ $specialPageAliases['arz'] = array(
'ContributionScores' => array( 'نتايج_المساهمه' ),
);
/** Breton (Brezhoneg) */
/** Assamese (অসমীয়া) */
$specialPageAliases['as'] = array(
'ContributionScores' => array( 'বৰঙনিৰ_মূল্যায়ন' ),
);
/** Bashkir (башҡортса) */
$specialPageAliases['ba'] = array(
'ContributionScores' => array( 'Өлөш_мәрәйҙәре' ),
);
/** Banjar (Bahasa Banjar) */
$specialPageAliases['bjn'] = array(
'ContributionScores' => array( 'Skor_sumbangan' ),
);
/** Breton (brezhoneg) */
$specialPageAliases['br'] = array(
'ContributionScores' => array( 'Skor_Degasadennoù' ),
);
/** Bosnian (Bosanski) */
/** Bosnian (bosanski) */
$specialPageAliases['bs'] = array(
'ContributionScores' => array( 'DoprinosiBodovi' ),
);
@@ -38,12 +53,17 @@ $specialPageAliases['de'] = array(
'ContributionScores' => array( 'Beitragspunkte' ),
);
/** Zazaki (Zazaki) */
$specialPageAliases['diq'] = array(
'ContributionScores' => array( 'Skorêİştiraxan' ),
);
/** Esperanto (Esperanto) */
$specialPageAliases['eo'] = array(
'ContributionScores' => array( 'Kontribuatingoj' ),
);
/** Estonian (Eesti) */
/** Estonian (eesti) */
$specialPageAliases['et'] = array(
'ContributionScores' => array( 'Kaastööpunktid' ),
);
@@ -53,12 +73,12 @@ $specialPageAliases['fa'] = array(
'ContributionScores' => array( 'امتیازهای_مشارکت' ),
);
/** Finnish (Suomi) */
/** Finnish (suomi) */
$specialPageAliases['fi'] = array(
'ContributionScores' => array( 'Muokkauspisteet' ),
);
/** Galician (Galego) */
/** Galician (galego) */
$specialPageAliases['gl'] = array(
'ContributionScores' => array( 'Puntuación_das_contribucións' ),
);
@@ -73,12 +93,12 @@ $specialPageAliases['ht'] = array(
'ContributionScores' => array( 'PwentajKontribisyon' ),
);
/** Hungarian (Magyar) */
/** Hungarian (magyar) */
$specialPageAliases['hu'] = array(
'ContributionScores' => array( 'Szerkesztési_pontok' ),
);
/** Interlingua (Interlingua) */
/** Interlingua (interlingua) */
$specialPageAliases['ia'] = array(
'ContributionScores' => array( 'Scores_de_contributiones' ),
);
@@ -98,6 +118,11 @@ $specialPageAliases['km'] = array(
'ContributionScores' => array( 'ពិន្ទុអ្នករួមចំណែក' ),
);
/** Korean (한국어) */
$specialPageAliases['ko'] = array(
'ContributionScores' => array( '기여점수' ),
);
/** Colognian (Ripoarisch) */
$specialPageAliases['ksh'] = array(
'ContributionScores' => array( 'MetmaacherZahle' ),
@@ -113,7 +138,7 @@ $specialPageAliases['lb'] = array(
'ContributionScores' => array( 'Score_vun_de_Kontributiounen' ),
);
/** Macedonian (Македонски) */
/** Macedonian (македонски) */
$specialPageAliases['mk'] = array(
'ContributionScores' => array( 'БодувањеНаПридонесите' ),
);
@@ -128,7 +153,7 @@ $specialPageAliases['mr'] = array(
'ContributionScores' => array( 'योगदानप्राविण्य' ),
);
/** Norwegian Bokmål (Norsk (bokmål)) */
/** Norwegian Bokmål (norsk (bokmål)) */
$specialPageAliases['nb'] = array(
'ContributionScores' => array( 'Bidragspoeng' ),
);
@@ -143,22 +168,27 @@ $specialPageAliases['nl'] = array(
'ContributionScores' => array( 'Gebruikersscores', 'Bijdragenscores' ),
);
/** Polish (Polski) */
/** Polish (polski) */
$specialPageAliases['pl'] = array(
'ContributionScores' => array( 'Punkty_za_edycje' ),
);
/** Russian (русский) */
$specialPageAliases['ru'] = array(
'ContributionScores' => array( 'Очки_вклада' ),
);
/** Sanskrit (संस्कृतम्) */
$specialPageAliases['sa'] = array(
'ContributionScores' => array( 'योगदानप्राप्ताङ्क' ),
);
/** Slovak (Slovenčina) */
/** Slovak (slovenčina) */
$specialPageAliases['sk'] = array(
'ContributionScores' => array( 'SkórePríspevkov' ),
);
/** Swedish (Svenska) */
/** Swedish (svenska) */
$specialPageAliases['sv'] = array(
'ContributionScores' => array( 'Bidragspoäng' ),
);
@@ -170,7 +200,7 @@ $specialPageAliases['th'] = array(
/** Tagalog (Tagalog) */
$specialPageAliases['tl'] = array(
'ContributionScores' => array( 'Mga puntos ng ambag' ),
'ContributionScores' => array( 'Mga_puntos_ng_ambag' ),
);
/** Turkish (Türkçe) */
@@ -178,12 +208,12 @@ $specialPageAliases['tr'] = array(
'ContributionScores' => array( 'KatkıSkorları', 'KatkıPuanları' ),
);
/** Simplified Chinese (中文(简体)) */
/** Simplified Chinese (中文简体) */
$specialPageAliases['zh-hans'] = array(
'ContributionScores' => array( '贡献得分' ),
);
/** Traditional Chinese (中文(繁體)) */
/** Traditional Chinese (中文繁體) */
$specialPageAliases['zh-hant'] = array(
'ContributionScores' => array( '貢獻得分' ),
);

File diff suppressed because it is too large Load Diff

View File

@@ -15,7 +15,7 @@ $wgExtensionCredits['specialpage'][] = array(
'url' => 'https://www.mediawiki.org/wiki/Extension:Contribution_Scores',
'author' => 'Tim Laqua',
'descriptionmsg' => 'contributionscores-desc',
'version' => '1.15'
'version' => '1.16'
);
$dir = dirname( __FILE__ ) . '/';
@@ -77,10 +77,10 @@ function efContributionScores_Render( &$parser, $usertext, $metric = 'score' ) {
$row = $dbr->fetchObject( $res );
$output = $wgLang->formatNum( $row->page_count );
} else {
$output = wfMsg( 'contributionscores-invalidmetric' );
$output = wfMessage( 'contributionscores-invalidmetric' )->text();
}
} else {
$output = wfMsg( 'contributionscores-invalidusername' );
$output = wfMessage( 'contributionscores-invalidusername' )->text();
}
return $parser->insertStripItem( $output, $parser->mStripState );

View File

@@ -23,11 +23,12 @@ class ContributionScores extends IncludableSpecialPage {
*
* @param $days int Days in the past to run report for
* @param $limit int Maximum number of users to return (default 50)
*
* @return HTML Table representing the requested Contribution Scores.
* @param $title Title (default null)
* @param $options array of options (default none; nosort/notools)
* @return Html Table representing the requested Contribution Scores.
*/
function genContributionScoreTable( $days, $limit, $title = null, $options = 'none' ) {
global $wgContribScoreIgnoreBots, $wgContribScoreIgnoreBlockedUsers, $wgContribScoresUseRealName, $wgLang;
global $wgContribScoreIgnoreBots, $wgContribScoreIgnoreBlockedUsers, $wgContribScoresUseRealName;
$opts = explode( ',', strtolower( $options ) );
@@ -55,7 +56,6 @@ class ContributionScores extends IncludableSpecialPage {
if ( $wgContribScoreIgnoreBots ) {
$sqlWhere .= " {$nextPrefix} rev_user NOT IN (SELECT ug_user FROM {$userGroupTable} WHERE ug_group='bot')";
$nextPrefix = "AND";
}
$sqlMostPages = "SELECT rev_user,
@@ -92,13 +92,14 @@ class ContributionScores extends IncludableSpecialPage {
$output = "<table class=\"wikitable contributionscores plainlinks{$sortable}\" >\n" .
"<tr class='header'>\n" .
Html::element( 'th', array(), wfMsg( 'contributionscores-score' ) ) .
Html::element( 'th', array(), wfMsg( 'contributionscores-pages' ) ) .
Html::element( 'th', array(), wfMsg( 'contributionscores-changes' ) ) .
Html::element( 'th', array(), wfMsg( 'contributionscores-username' ) );
Html::element( 'th', array(), $this->msg( 'contributionscores-score' )->text() ) .
Html::element( 'th', array(), $this->msg( 'contributionscores-pages' )->text() ) .
Html::element( 'th', array(), $this->msg( 'contributionscores-changes' )->text() ) .
Html::element( 'th', array(), $this->msg( 'contributionscores-username' )->text() );
$altrow = '';
$lang = $this->getLanguage();
foreach ( $res as $row ) {
// Use real name if option used and real name present.
if ( $wgContribScoresUseRealName && $row->user_real_name !== '' ) {
@@ -116,9 +117,9 @@ class ContributionScores extends IncludableSpecialPage {
$output .= Html::closeElement( 'tr' );
$output .= "<tr class='{$altrow}'>\n<td class='content'>" .
$wgLang->formatNum( round( $row->wiki_rank, 0 ) ) . "\n</td><td class='content'>" .
$wgLang->formatNum( $row->page_count ) . "\n</td><td class='content'>" .
$wgLang->formatNum( $row->rev_count ) . "\n</td><td class='content'>" .
$lang->formatNum( round( $row->wiki_rank, 0 ) ) . "\n</td><td class='content'>" .
$lang->formatNum( $row->page_count ) . "\n</td><td class='content'>" .
$lang->formatNum( $row->rev_count ) . "\n</td><td class='content'>" .
$userLink;
# Option to not display user tools
@@ -140,15 +141,21 @@ class ContributionScores extends IncludableSpecialPage {
$dbr->freeResult( $res );
if ( !empty( $title ) )
$output = Html::rawElement( 'table', array( 'cellspacing' => 0, 'cellpadding' => 0,
'class' => 'contributionscores-wrapper', 'lang' => $wgLang->getCode(), 'dir' => $wgLang->getDir() ),
"\n" .
"<tr>\n" .
"<td style='padding: 0px;'>{$title}</td>\n" .
"</tr>\n" .
"<tr>\n" .
"<td style='padding: 0px;'>{$output}</td>\n" .
"</tr>\n" );
$output = Html::rawElement( 'table',
array(
'style' => 'border-spacing: 0; padding: 0',
'class' => 'contributionscores-wrapper',
'lang' => htmlspecialchars( $lang->getCode()),
'dir' => $lang->getDir()
),
"\n" .
"<tr>\n" .
"<td style='padding: 0px;'>{$title}</td>\n" .
"</tr>\n" .
"<tr>\n" .
"<td style='padding: 0px;'>{$output}</td>\n" .
"</tr>\n"
);
return $output;
}
@@ -171,8 +178,6 @@ class ContributionScores extends IncludableSpecialPage {
* @param $par
*/
function showInclude( $par ) {
global $wgOut, $wgLang;
$days = null;
$limit = null;
$options = 'none';
@@ -199,20 +204,20 @@ class ContributionScores extends IncludableSpecialPage {
}
if ( $days > 0 ) {
$reportTitle = wfMsgExt( 'contributionscores-days', 'parsemag', $wgLang->formatNum( $days ) );
$reportTitle = $this->msg( 'contributionscores-days' )->numParams( $days )->text();
} else {
$reportTitle = wfMsg( 'contributionscores-allrevisions' );
$reportTitle = $this->msg( 'contributionscores-allrevisions' )->text();
}
$reportTitle .= " " . wfMsgExt( 'contributionscores-top', 'parsemag', $wgLang->formatNum( $limit ) );
$reportTitle .= " " . $this->msg( 'contributionscores-top' )->numParams( $limit )->text();
$title = Xml::element( 'h4', array( 'class' => 'contributionscores-title' ), $reportTitle ) . "\n";
$wgOut->addHTML( $this->genContributionScoreTable( $days, $limit, $title, $options ) );
$this->getOutput()->addHTML( $this->genContributionScoreTable( $days, $limit, $title, $options ) );
}
/**
* Show the special page
*/
function showPage() {
global $wgOut, $wgLang, $wgContribScoreReports;
global $wgContribScoreReports;
if ( !is_array( $wgContribScoreReports ) ) {
$wgContribScoreReports = array(
@@ -222,19 +227,20 @@ class ContributionScores extends IncludableSpecialPage {
);
}
$wgOut->addWikiMsg( 'contributionscores-info' );
$out = $this->getOutput();
$out->addWikiMsg( 'contributionscores-info' );
foreach ( $wgContribScoreReports as $scoreReport ) {
list( $days, $revs ) = $scoreReport;
if ( $days > 0 ) {
$reportTitle = wfMsgExt( 'contributionscores-days', 'parsemag', $wgLang->formatNum( $days ) );
$reportTitle = $this->msg( 'contributionscores-days' )->numParams( $days )->text();
} else {
$reportTitle = wfMsg( 'contributionscores-allrevisions' );
$reportTitle = $this->msg( 'contributionscores-allrevisions' )->text();
}
$reportTitle .= " " . wfMsgExt( 'contributionscores-top', 'parsemag', $wgLang->formatNum( $revs ) );
$reportTitle .= " " . $this->msg( 'contributionscores-top' )->numParams( $revs )->text();
$title = Xml::element( 'h2', array( 'class' => 'contributionscores-title' ), $reportTitle ) . "\n";
$wgOut->addHTML( $title );
$wgOut->addHTML( $this->genContributionScoreTable( $days, $revs ) );
$out->addHTML( $title );
$out->addHTML( $this->genContributionScoreTable( $days, $revs ) );
}
}
}