r29951 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r29950‎ | r29951 | r29952 >
Date:15:18, 19 January 2008
Author:siebrand
Status:old
Tags:
Comment:
* merge multiple message files into one
* use wfLoadExtensionMessages and delay loading a bit
* add version in extension credits
* remove EOL whitespace
* update Translate extension
Modified paths:
  • /trunk/extensions/PageBy/PageBy.i18n.ar.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.bg.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.de.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.el.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.fr.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.gl.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.hsb.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.hy.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.it.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.lb.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.nl.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.no.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.oc.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.php (modified) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.pl.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.pms.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.sk.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.stq.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.tr.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.yue.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.zh-cn.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.zh-hans.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.zh-hant.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.zh-hk.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.zh-sg.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.zh-tw.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.zh-yue.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.i18n.zh.php (deleted) (history)
  • /trunk/extensions/PageBy/PageBy.php (modified) (history)
  • /trunk/extensions/PageBy/PageByRenderer.php (modified) (history)
  • /trunk/extensions/Translate/MessageGroups.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/MessageGroups.php
@@ -1455,17 +1455,12 @@
14561456 protected $messageFile = 'Oversight/HideRevision.i18n.php';
14571457 }
14581458
1459 -class PageByMessageGroup extends MultipleFileMessageGroup {
1460 - protected $fileExporter = null;
 1459+class PageByMessageGroup extends ExtensionMessageGroup {
14611460 protected $label = 'Page By';
14621461 protected $id = 'ext-pageby';
14631462
14641463 protected $arrName = 'messages';
14651464 protected $messageFile = 'PageBy/PageBy.i18n.php';
1466 - protected $filePattern = 'PageBy/PageBy.i18n.$CODE.php';
1467 -
1468 - protected $exportStart = '$messages = array(';
1469 - protected $exportEnd = ');';
14701465 }
14711466
14721467 class PasswordResetMessageGroup extends ExtensionMessageGroup {
Index: trunk/extensions/PageBy/PageBy.i18n.de.php
@@ -1,17 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -$messages['pageby-first']= 'Seite angelegt von $1, $2';
15 -$messages['pageby-last']= 'Zuletzt <a href="$3">geändert</a> von $1, $2';
16 -$messages['pageby-contributors']= 'Beiträge:';
17 -$messages['pageby-anon']= '<i>anonym</i>';
18 -
Index: trunk/extensions/PageBy/PageBy.i18n.bg.php
@@ -1,20 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -/** Bulgarian (Български)
15 - * @author DCLXVI
16 - */
17 -$messages = array(
18 - 'pageby-first' => 'Страницата е създадена от $1, $2',
19 - 'pageby-last' => 'Последно <a href="$3">редактирана</a> от $1, $2',
20 - 'pageby-contributors' => 'Редактори:',
21 -);
Index: trunk/extensions/PageBy/PageBy.i18n.lb.php
@@ -1,20 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler, Betawiki users
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -/** Luxembourgish (Lëtzebuergesch)
15 - * @author Robby
16 - */
17 -$messages = array(
18 - 'pageby-first' => 'Säit ugefaang vum $1, $2',
19 - 'pageby-last' => 'Lescht <a href="$3">Ännerung</a> vum $1, $2',
20 - 'pageby-anon' => '<i>anonym Benotzer</i>',
21 -);
Index: trunk/extensions/PageBy/PageBy.i18n.pms.php
@@ -1,18 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler, Betawiki users
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -$messages = array(
15 - 'pageby-first' => 'Pàgina creà da $1, $2',
16 - 'pageby-last' => 'Ùltima <a href="$3">modìfica</a> faita da $1, $2',
17 - 'pageby-contributors' => 'A l\'han contribuì:',
18 - 'pageby-anon' => '<i>anònim</i>',
19 -);
Index: trunk/extensions/PageBy/PageBy.i18n.yue.php
@@ -1,17 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -$messages['pageby-first']= '頁面由$1,響$2創建';
15 -$messages['pageby-last']= '上次響$2,由$1<a href="$3">修改</a>';
16 -$messages['pageby-contributors']= '貢獻者:';
17 -$messages['pageby-anon']= '<i>匿名</i>';
18 -
Index: trunk/extensions/PageBy/PageBy.i18n.fr.php
@@ -1,18 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the Pageby extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -$messages = array(
15 - 'pageby-first' => 'Page créée par $1, $2',
16 - 'pageby-last' => 'Dernière <a href="$3">modification</a> le $1, $2',
17 - 'pageby-contributors' => 'Contributeurs:',
18 - 'pageby-anon' => '\'\'anonymes\'\'',
19 -);
Index: trunk/extensions/PageBy/PageBy.i18n.zh-hans.php
@@ -1,18 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -$messages['pageby-first']= '页面由$1,在$2创建';
15 -$messages['pageby-last']= '上次在$2,由$1<a href="$3">修改</a>';
16 -$messages['pageby-contributors']= '贡献者:';
17 -$messages['pageby-anon']= '<i>匿名</i>';
18 -
19 -
Index: trunk/extensions/PageBy/PageBy.i18n.zh-tw.php
@@ -1,16 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -/* Inherited from Chinese (Traditional) messages */
15 -require_once('PageBy.i18n.zh-hant.php');
16 -
17 -
Index: trunk/extensions/PageBy/PageBy.i18n.zh-hant.php
@@ -1,18 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -$messages['pageby-first']= '頁面由$1,在$2創建';
15 -$messages['pageby-last']= '上次在$2,由$1<a href="$3">修改</a>';
16 -$messages['pageby-contributors']= '貢獻者:';
17 -$messages['pageby-anon']= '<i>匿名</i>';
18 -
19 -
Index: trunk/extensions/PageBy/PageBy.i18n.nl.php
@@ -1,16 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler, Siebrand Mazeland
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -$messages['pageby-first']= 'Pagina gemaakt door $1, $2';
15 -$messages['pageby-last']= 'Laatste <a href="$3">wijziging</a> door $1, $2';
16 -$messages['pageby-contributors']= 'Redacteuren:';
17 -$messages['pageby-anon']= '<i>anoniem</i>';
\ No newline at end of file
Index: trunk/extensions/PageBy/PageBy.i18n.pl.php
@@ -1,18 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler, Betawiki users
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -$messages = array(
15 - 'pageby-first' => 'Strona stworzona przez $1, $2',
16 - 'pageby-last' => 'Ostatnia <a href="$3">modyfikacja</a> przez $1, $2',
17 - 'pageby-contributors' => 'Autorzy:',
18 - 'pageby-anon' => '<i>anonimowy</i>',
19 -);
Index: trunk/extensions/PageBy/PageBy.i18n.no.php
@@ -1,18 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler, Betawiki users
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -$messages = array(
15 - 'pageby-first' => 'Side opprettet av $1 $2',
16 - 'pageby-last' => 'Sist <a href="$3">endret</a> av $1 $2',
17 - 'pageby-contributors' => 'Bidragsytere:',
18 - 'pageby-anon' => '<i>anonym</i>',
19 -);
Index: trunk/extensions/PageBy/PageBy.i18n.zh-cn.php
@@ -1,16 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -/* Inherited from Chinese (Simplified) messages */
15 -require_once('PageBy.i18n.zh-hans.php');
16 -
17 -
Index: trunk/extensions/PageBy/PageBy.i18n.hy.php
@@ -1,18 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler, Betawiki users
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -$messages = array(
15 - 'pageby-first' => 'Էջը ստեղծել է՝',
16 - 'pageby-last' => 'Վերջին <a href="$3">փոփոխության</a> հեղինակն է՝ $1, $2',
17 - 'pageby-contributors' => 'Հեղինակներ.',
18 - 'pageby-anon' => '<i>անանուն</i>',
19 -);
Index: trunk/extensions/PageBy/PageBy.i18n.zh.php
@@ -1,16 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -/* Inherited from Chinese (Traditional) messages */
15 -require_once('PageBy.i18n.zh-hant.php');
16 -
17 -
Index: trunk/extensions/PageBy/PageBy.i18n.zh-yue.php
@@ -1,16 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -/* Inherited from Cantonese messages */
15 -require_once('PageBy.i18n.yue.php');
16 -
17 -
Index: trunk/extensions/PageBy/PageBy.i18n.tr.php
@@ -1,8 +0,0 @@
2 -<?php
3 -/** Turkish (Türkçe)
4 - * @author Karduelis
5 - */
6 -$messages = array(
7 - 'pageby-contributors' => 'Katkıda bulunanlar',
8 - 'pageby-anon' => '<i>anonim</i>',
9 -);
Index: trunk/extensions/PageBy/PageBy.i18n.zh-sg.php
@@ -1,16 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -/* Inherited from Chinese (Simplified) messages */
15 -require_once('PageBy.i18n.zh-hans.php');
16 -
17 -
Index: trunk/extensions/PageBy/PageBy.i18n.el.php
@@ -1,18 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler, Betawiki users
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -/** Greek (Ελληνικά)
15 - * @author Consta
16 - */
17 -$messages = array(
18 - 'pageby-anon' => '<i>ανώνυμος</i>',
19 -);
Index: trunk/extensions/PageBy/PageBy.i18n.oc.php
@@ -1,21 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler, Betawiki users
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -/** Occitan (Occitan)
15 - * @author Cedric31
16 - */
17 -$messages = array(
18 - 'pageby-first' => 'Pagina creada per $1, $2',
19 - 'pageby-last' => 'Darrièr <a href="$3">cambiament</a> lo $1, $2',
20 - 'pageby-contributors' => 'Contributors :',
21 - 'pageby-anon' => "''anonims''",
22 -);
Index: trunk/extensions/PageBy/PageBy.i18n.gl.php
@@ -1,18 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler, Betawiki users
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -$messages = array(
15 - 'pageby-first' => 'Páxina creada por $1, $2',
16 - 'pageby-last' => 'Última <a href="$3">modificación</a> por $1, $2',
17 - 'pageby-contributors' => 'Colaboradores:',
18 - 'pageby-anon' => '<i>anónimo</i>',
19 -);
Index: trunk/extensions/PageBy/PageBy.i18n.ar.php
@@ -1,18 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler, Betawiki users
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -$messages = array(
15 - 'pageby-first' => 'الصفحة تم إنشاؤها بواسطة $1، $2',
16 - 'pageby-last' => 'تم <a href="$3">تعديلها</a> آخر مرة بواسطة $1، $2',
17 - 'pageby-contributors' => 'مساهمون:',
18 - 'pageby-anon' => '<i>مجهول</i>',
19 -);
Index: trunk/extensions/PageBy/PageBy.i18n.stq.php
@@ -1,21 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler, Betawiki users
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -/** Seeltersk (Seeltersk)
15 - * @author Pyt
16 - */
17 -$messages = array(
18 - 'pageby-first' => 'Siede anlaid fon $1, $2',
19 - 'pageby-last' => 'Toulääst <a href="$3">annerd</a> fon $1, $2',
20 - 'pageby-contributors' => 'Biedraage:',
21 - 'pageby-anon' => '<i>anonym</i>',
22 -);
Index: trunk/extensions/PageBy/PageBy.i18n.it.php
@@ -1,17 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de; translation by BrokenArrow
10 - * @copyright © 2007 Daniel Kinzler
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -$messages['pageby-first']= 'Pagina creata da $1 ($2)';
15 -$messages['pageby-last']= 'Ultima <a href="$3">modifica</a> da parte di $1 ($2)';
16 -$messages['pageby-contributors']= 'Autori:';
17 -$messages['pageby-anon']= '<i>anonimo</i>';
18 -
Index: trunk/extensions/PageBy/PageBy.i18n.hsb.php
@@ -1,18 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -$messages = array(
15 - 'pageby-first' => 'Strona wutworjena wot $1, $2',
16 - 'pageby-last' => 'Posledni raz <a href="$3">změnjeny</a> wot $1, $2',
17 - 'pageby-contributors' => 'Přinoški:',
18 - 'pageby-anon' => '<i>anonymny</i>',
19 -);
Index: trunk/extensions/PageBy/PageBy.i18n.sk.php
@@ -1,17 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler, helix84
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -$messages['pageby-first']= 'Stránku vytvoril $1, $2';
15 -$messages['pageby-last']= 'Naposledy <a href="$3">zmenil</a> $1, $2';
16 -$messages['pageby-contributors']= 'Prispievatelia:';
17 -$messages['pageby-anon']= '<i>anonymní</i>';
18 -
Index: trunk/extensions/PageBy/PageBy.i18n.zh-hk.php
@@ -1,16 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Internationalisation file for the PageBy extension
6 - *
7 - * @package MediaWiki
8 - * @subpackage Extensions
9 - * @author Daniel Kinzler, brightbyte.de
10 - * @copyright © 2007 Daniel Kinzler
11 - * @licence GNU General Public Licence 2.0 or later
12 - */
13 -
14 -/* Inherited from Chinese (Traditional) messages */
15 -require_once('PageBy.i18n.zh-hant.php');
16 -
17 -
Index: trunk/extensions/PageBy/PageByRenderer.php
@@ -44,23 +44,23 @@
4545 $this->nominor = isset($argv['nominor']) ? $argv['nominor'] : true;
4646 if ( $this->nominor === 'false' || $this->nominor === 'no' || $this->nominor === '0' )
4747 $this->nominor = false;
48 -
 48+
4949 $this->nobot = isset($argv['nobot']) ? $argv['nobot'] : true;
5050 if ( $this->nobot === 'false' || $this->nobot === 'no' || $this->nobot === '0' )
5151 $this->nobot = false;
52 -
 52+
5353 $this->noanon = isset($argv['noanon']) ? $argv['noanon'] : false;
5454 if ( $this->noanon === 'false' || $this->noanon === 'no' || $this->noanon === '0' )
5555 $this->noanon = false;
56 -
 56+
5757 $this->showfirst = isset($argv['creation']) ? $argv['creation'] : true;
5858 if ( $this->showfirst === 'false' || $this->showfirst === 'no' || $this->showfirst === '0' )
5959 $this->showfirst = false;
60 -
 60+
6161 $this->showcomments = isset($argv['comments']) ? $argv['comments'] : true;
6262 if ( $this->showcomments === 'false' || $this->showcomments === 'no' || $this->showcomments === '0' )
6363 $this->showcomments = false;
64 -
 64+
6565 $this->showtime = isset($argv['time']) ? $argv['time'] : false;
6666 if ( $this->showtime === 'false' || $this->showtime === 'no' || $this->showtime === '0' )
6767 $this->showtime = false;
@@ -69,7 +69,7 @@
7070 function collectInfo( ) {
7171 $dbr = wfGetDB( DB_SLAVE );
7272 list( $trevision, $tuser, $tuser_groups ) = $dbr->tableNamesN( 'revision', '$tuser', 'user_groups' );
73 -
 73+
7474 #TODO: use query cache, check against page-timestamp
7575 #NOTE: if $this->otherpage == false, the parser cache already takes care of this...
7676
@@ -87,13 +87,13 @@
8888 $edits = 0;
8989 while ($row = $dbr->fetchObject( $res )) {
9090 $edits += 1;
91 -
 91+
9292 if ($first===NULL) $first = $row;
9393 $last = $row;
94 -
95 - if ($this->nominor && $row->rev_minor_edit) continue;
 94+
 95+ if ($this->nominor && $row->rev_minor_edit) continue;
9696 if ($this->noanon && !$row->rev_user) continue; //FIXE: this also ignores imported revisions!
97 -
 97+
9898 if (!isset($users[$row->rev_user])) {
9999 $users[$row->rev_user] = array(
100100 'name' => $row->rev_user ? $row->rev_user_text : NULL,
@@ -114,9 +114,9 @@
115115
116116 if ($userids) {
117117 $sql = "SELECT $tuser_groups.* FROM $tuser_groups ";
118 - $sql .= "WHERE ug_user IN ( " . $dbr->makeList( $userids ) . " ) ";
 118+ $sql .= "WHERE ug_user IN ( " . $dbr->makeList( $userids ) . " ) ";
119119 $sql .= "AND ug_group = 'bot' ";
120 -
 120+
121121 $res = $dbr->query( $sql, 'PageByRenderer::collectInfo#bots' );
122122 while ($row = $dbr->fetchObject( $res )) {
123123 unset($users[$row->ug_user]); #strip bots
@@ -133,13 +133,11 @@
134134
135135 return $info;
136136 }
137 -
 137+
138138 function renderPageBy( ) {
139139 global $wgContLang, $wgUser;
140140 $sk = $wgUser->getSkin();
141141
142 - loadPageByI18n();
143 -
144142 if ($this->otherpage) {
145143 #TODO: if we can't use the parser cache, we should use the query cache
146144 $this->parser->disableCache();
@@ -149,9 +147,10 @@
150148 if (!$info) return false; #TODO: report error!
151149
152150 extract($info);
153 -
 151+
154152 $html = '<ul class="pageby">';
155153
 154+ wfLoadExtensionMessages( 'PageBy' );
156155 #TODO: somehere link the page history. And mention the page name, if it's not the local page.
157156
158157 if ($this->showfirst) {
@@ -160,10 +159,10 @@
161160 $date = $this->showtime ? $wgContLang->timeanddate($first->rev_timestamp) : $wgContLang->date($first->rev_timestamp);
162161 $diff = $this->title->getLocalURL('diff=' . $first->rev_id);
163162 $comment = htmlspecialchars( $first->rev_comment );
164 -
 163+
165164 $html .= '<li class="pageby-first">';
166165 $html .= wfMsg('pageby-first', $ulink, $date, $diff);
167 - if ($this->showcomments) $html .= '<span class="pageby-comment">: <i>' . $comment . '</i></span>';
 166+ if ($this->showcomments) $html .= '<span class="pageby-comment">: <i>' . $comment . '</i></span>';
168167 $html .= '</li>';
169168 $html .= "\n";
170169 }
@@ -206,16 +205,14 @@
207206 $comment = htmlspecialchars( $last->rev_comment );
208207
209208 $html .= '<li class="pageby-last">';
210 - $html .= wfMsg('pageby-last', $ulink, $date, $diff);
211 - if ($this->showcomments) $html .= '<span class="pageby-comment">: <i>' . $comment . '</i></span>';
 209+ $html .= wfMsg('pageby-last', $ulink, $date, $diff);
 210+ if ($this->showcomments) $html .= '<span class="pageby-comment">: <i>' . $comment . '</i></span>';
212211 $html .= '</li>';
213212 }
214213
215214 $html .= '</ul>';
216215 $html .= "\n";
217 -
 216+
218217 return $html;
219218 }
220 -
221219 }
222 -
Index: trunk/extensions/PageBy/PageBy.i18n.php
@@ -1,7 +1,6 @@
22 <?php
3 -
43 /**
5 - * Internationalisation file for the PageBy extension
 4+ * Internationalisation file for the extension PageBy
65 *
76 * @package MediaWiki
87 * @subpackage Extensions
@@ -10,8 +9,224 @@
1110 * @licence GNU General Public Licence 2.0 or later
1211 */
1312
14 -$messages['pageby-first']= 'Page created by $1, $2';
15 -$messages['pageby-last']= 'Last <a href="$3">modified</a> by $1, $2';
16 -$messages['pageby-contributors']= 'Contributors:';
17 -$messages['pageby-anon']= '<i>anonymous</i>';
 13+$messages = array();
1814
 15+/** English
 16+ * @author Daniel Kinzler, brightbyte.de
 17+ */
 18+$messages['en'] = array(
 19+ 'pageby-first' => 'Page created by $1, $2',
 20+ 'pageby-last' => 'Last <a href="$3">modified</a> by $1, $2',
 21+ 'pageby-contributors' => 'Contributors:',
 22+ 'pageby-anon' => '<i>anonymous</i>',
 23+);
 24+
 25+/** Arabic (العربية)
 26+ * @author Meno25
 27+ */
 28+$messages['ar'] = array(
 29+ 'pageby-first' => 'الصفحة تم إنشاؤها بواسطة $1، $2',
 30+ 'pageby-last' => 'تم <a href="$3">تعديلها</a> آخر مرة بواسطة $1، $2',
 31+ 'pageby-contributors' => 'مساهمون:',
 32+ 'pageby-anon' => '<i>مجهول</i>',
 33+);
 34+
 35+/** Bulgarian (Български)
 36+ * @author DCLXVI
 37+ */
 38+$messages['bg'] = array(
 39+ 'pageby-first' => 'Страницата е създадена от $1, $2',
 40+ 'pageby-last' => 'Последно <a href="$3">редактирана</a> от $1, $2',
 41+ 'pageby-contributors' => 'Редактори:',
 42+);
 43+
 44+/** German (Deutsch)
 45+ * @author Daniel Kinzler
 46+ */
 47+$messages['de'] = array(
 48+ 'pageby-first' => 'Seite angelegt von $1, $2',
 49+ 'pageby-last' => 'Zuletzt <a href="$3">geändert</a> von $1, $2',
 50+ 'pageby-contributors' => 'Beiträge:',
 51+ 'pageby-anon' => '<i>anonym</i>',
 52+);
 53+
 54+/** Greek (Ελληνικά)
 55+ * @author Consta
 56+ */
 57+$messages['el'] = array(
 58+ 'pageby-anon' => '<i>ανώνυμος</i>',
 59+);
 60+
 61+/** French (Français)
 62+ * @author Sherbrooke
 63+ */
 64+$messages['fr'] = array(
 65+ 'pageby-first' => 'Page créée par $1, $2',
 66+ 'pageby-last' => 'Dernière <a href="$3">modification</a> le $1, $2',
 67+ 'pageby-contributors' => 'Contributeurs:',
 68+ 'pageby-anon' => "''anonymes''",
 69+);
 70+
 71+/** Galician (Galego)
 72+ * @author Xosé
 73+ * @author Alma
 74+ */
 75+$messages['gl'] = array(
 76+ 'pageby-first' => 'Páxina creada por $1, $2',
 77+ 'pageby-last' => 'Última <a href="$3">modificación</a> por $1, $2',
 78+ 'pageby-contributors' => 'Colaboradores:',
 79+ 'pageby-anon' => '<i>anónimo</i>',
 80+);
 81+
 82+/** Upper Sorbian (Hornjoserbsce) */
 83+$messages['hsb'] = array(
 84+ 'pageby-first' => 'Strona wutworjena wot $1, $2',
 85+ 'pageby-last' => 'Posledni raz <a href="$3">změnjeny</a> wot $1, $2',
 86+ 'pageby-contributors' => 'Přinoški:',
 87+ 'pageby-anon' => '<i>anonymny</i>',
 88+);
 89+
 90+/** Armenian (Հայերեն)
 91+ * @author Teak
 92+ */
 93+$messages['hy'] = array(
 94+ 'pageby-first' => 'Էջը ստեղծել է՝',
 95+ 'pageby-last' => 'Վերջին <a href="$3">փոփոխության</a> հեղինակն է՝ $1, $2',
 96+ 'pageby-contributors' => 'Հեղինակներ.',
 97+ 'pageby-anon' => '<i>անանուն</i>',
 98+);
 99+
 100+/** Italian (Italiano)
 101+ * @author BrokenArrow
 102+ */
 103+$messages['it'] = array(
 104+ 'pageby-first' => 'Pagina creata da $1 ($2)',
 105+ 'pageby-last' => 'Ultima <a href="$3">modifica</a> da parte di $1 ($2)',
 106+ 'pageby-contributors' => 'Autori:',
 107+ 'pageby-anon' => '<i>anonimo</i>',
 108+);
 109+
 110+/** Luxembourgish (Lëtzebuergesch)
 111+ * @author Robby
 112+ */
 113+$messages['lb'] = array(
 114+ 'pageby-first' => 'Säit ugefaang vum $1, $2',
 115+ 'pageby-last' => 'Lescht <a href="$3">Ännerung</a> vum $1, $2',
 116+ 'pageby-anon' => '<i>anonym Benotzer</i>',
 117+);
 118+
 119+/** Dutch (Nederlands)
 120+ * @author Siebrand
 121+ */
 122+$messages['nl'] = array(
 123+ 'pageby-first' => 'Pagina gemaakt door $1, $2',
 124+ 'pageby-last' => 'Laatste <a href="$3">wijziging</a> door $1, $2',
 125+ 'pageby-contributors' => 'Redacteuren:',
 126+ 'pageby-anon' => '<i>anoniem</i>',
 127+);
 128+
 129+/** Norwegian (‪Norsk (bokmål)‬)
 130+ * @author Jon Harald Søby
 131+ */
 132+$messages['no'] = array(
 133+ 'pageby-first' => 'Side opprettet av $1 $2',
 134+ 'pageby-last' => 'Sist <a href="$3">endret</a> av $1 $2',
 135+ 'pageby-contributors' => 'Bidragsytere:',
 136+ 'pageby-anon' => '<i>anonym</i>',
 137+);
 138+
 139+/** Occitan (Occitan)
 140+ * @author Cedric31
 141+ */
 142+$messages['oc'] = array(
 143+ 'pageby-first' => 'Pagina creada per $1, $2',
 144+ 'pageby-last' => 'Darrièr <a href="$3">cambiament</a> lo $1, $2',
 145+ 'pageby-contributors' => 'Contributors :',
 146+ 'pageby-anon' => "''anonims''",
 147+);
 148+
 149+/** Polish (Polski)
 150+ * @author Derbeth
 151+ */
 152+$messages['pl'] = array(
 153+ 'pageby-first' => 'Strona stworzona przez $1, $2',
 154+ 'pageby-last' => 'Ostatnia <a href="$3">modyfikacja</a> przez $1, $2',
 155+ 'pageby-contributors' => 'Autorzy:',
 156+ 'pageby-anon' => '<i>anonimowy</i>',
 157+);
 158+
 159+/** Piemontèis (Piemontèis)
 160+ * @author Bèrto 'd Sèra
 161+ */
 162+$messages['pms'] = array(
 163+ 'pageby-first' => 'Pàgina creà da $1, $2',
 164+ 'pageby-last' => 'Ùltima <a href="$3">modìfica</a> faita da $1, $2',
 165+ 'pageby-contributors' => "A l'han contribuì:",
 166+ 'pageby-anon' => '<i>anònim</i>',
 167+);
 168+
 169+/** Slovak (Slovenčina)
 170+ * @author helix84
 171+ */
 172+$messages['sk'] = array(
 173+ 'pageby-first' => 'Stránku vytvoril $1, $2',
 174+ 'pageby-last' => 'Naposledy <a href="$3">zmenil</a> $1, $2',
 175+ 'pageby-contributors' => 'Prispievatelia:',
 176+ 'pageby-anon' => '<i>anonymní</i>',
 177+);
 178+
 179+/** Seeltersk (Seeltersk)
 180+ * @author Pyt
 181+ */
 182+$messages['stq'] = array(
 183+ 'pageby-first' => 'Siede anlaid fon $1, $2',
 184+ 'pageby-last' => 'Toulääst <a href="$3">annerd</a> fon $1, $2',
 185+ 'pageby-contributors' => 'Biedraage:',
 186+ 'pageby-anon' => '<i>anonym</i>',
 187+);
 188+
 189+/** Turkish (Türkçe)
 190+ * @author Karduelis
 191+ */
 192+$messages['tr'] = array(
 193+ 'pageby-contributors' => 'Katkıda bulunanlar',
 194+ 'pageby-anon' => '<i>anonim</i>',
 195+);
 196+
 197+/** Yue (粵語)
 198+ * @author Shinjiman
 199+ */
 200+$messages['yue'] = array(
 201+ 'pageby-first' => '頁面由$1,響$2創建',
 202+ 'pageby-last' => '上次響$2,由$1<a href="$3">修改</a>',
 203+ 'pageby-contributors' => '貢獻者:',
 204+ 'pageby-anon' => '<i>匿名</i>',
 205+);
 206+
 207+/** Simplified Chinese (‪中文(简体)‬)
 208+ * @author Shinjiman
 209+ */
 210+$messages['zh-hans'] = array(
 211+ 'pageby-first' => '页面由$1,在$2创建',
 212+ 'pageby-last' => '上次在$2,由$1<a href="$3">修改</a>',
 213+ 'pageby-contributors' => '贡献者:',
 214+ 'pageby-anon' => '<i>匿名</i>',
 215+);
 216+
 217+/** Traditional Chinese (‪中文(繁體)‬)
 218+ * @author Shinjiman
 219+ */
 220+$messages['zh-hant'] = array(
 221+ 'pageby-first' => '頁面由$1,在$2創建',
 222+ 'pageby-last' => '上次在$2,由$1<a href="$3">修改</a>',
 223+ 'pageby-contributors' => '貢獻者:',
 224+ 'pageby-anon' => '<i>匿名</i>',
 225+);
 226+
 227+$messages['de-formal'] = $messages['de'];
 228+$messages['zh'] = $messages['zh-hans'];
 229+$messages['zh-cn'] = $messages['zh-hans'];
 230+$messages['zh-hk'] = $messages['zh-hant'];
 231+$messages['zh-sg'] = $messages['zh-hans'];
 232+$messages['zh-tw'] = $messages['zh-hant'];
 233+$messages['zh-yue'] = $messages['yue'];
Index: trunk/extensions/PageBy/PageBy.php
@@ -9,57 +9,31 @@
1010 * @licence GNU General Public Licence 2.0 or later
1111 */
1212
13 -
1413 if( !defined( 'MEDIAWIKI' ) ) {
1514 echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" );
1615 die( 1 );
1716 }
1817
19 -$wgExtensionCredits['other'][] = array(
20 - 'name' => 'PageBy',
21 - 'author' => 'Daniel Kinzler, brightbyte.de',
 18+$wgExtensionCredits['other'][] = array(
 19+ 'name' => 'PageBy',
 20+ 'version' => '2008-01-19',
 21+ 'author' => 'Daniel Kinzler, brightbyte.de',
2222 'url' => 'http://mediawiki.org/wiki/Extension:PageBy',
23 - 'description' => 'shows contributors inline on a wiki page',
 23+ 'description' => 'Shows contributors inline on a wiki page using the tag <nowiki><pageby></nowiki>',
2424 );
2525
 26+$dir = dirname(__FILE__) . '/';
 27+$wgExtensionMessagesFiles['PageBy'] = $dir . 'PageBy.i18n.php';
2628 $wgExtensionFunctions[] = "wfPageByExtension";
2729
28 -$wgAutoloadClasses['PageByRenderer'] = dirname( __FILE__ ) . '/PageByRenderer.php';
 30+$wgAutoloadClasses['PageByRenderer'] = $dir. 'PageByRenderer.php';
2931
3032 function wfPageByExtension() {
3133 global $wgParser;
3234 $wgParser->setHook( "pageby", "newsxRenderPageBy" );
3335 }
3436
35 -
3637 function newsxRenderPageBy( $page, $argv, &$parser ) {
3738 $renderer = new PageByRenderer($page, $argv, $parser);
3839 return $renderer->renderPageBy();
3940 }
40 -
41 -/**
42 -* load the PageBy internationalization file
43 -*/
44 -function loadPageByI18n() {
45 - global $wgContLang, $wgMessageCache;
46 -
47 - #TODO: optionally disable caching and use user language?
48 - # or always use user language, because it's in the parser-cache-key? is it?
49 -
50 - static $initialized = false;
51 -
52 - if ( $initialized ) return;
53 -
54 - $messages= array();
55 -
56 - $f= dirname( __FILE__ ) . '/PageBy.i18n.php';
57 - include( $f );
58 -
59 - $f= dirname( __FILE__ ) . '/PageBy.i18n.' . $wgContLang->getCode() . '.php';
60 - if ( file_exists( $f ) ) include( $f );
61 -
62 - $initialized = true;
63 - $wgMessageCache->addMessages( $messages );
64 -}
65 -
66 -

Status & tagging log