Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -1455,17 +1455,12 @@ |
1456 | 1456 | protected $messageFile = 'Oversight/HideRevision.i18n.php'; |
1457 | 1457 | } |
1458 | 1458 | |
1459 | | -class PageByMessageGroup extends MultipleFileMessageGroup { |
1460 | | - protected $fileExporter = null; |
| 1459 | +class PageByMessageGroup extends ExtensionMessageGroup { |
1461 | 1460 | protected $label = 'Page By'; |
1462 | 1461 | protected $id = 'ext-pageby'; |
1463 | 1462 | |
1464 | 1463 | protected $arrName = 'messages'; |
1465 | 1464 | protected $messageFile = 'PageBy/PageBy.i18n.php'; |
1466 | | - protected $filePattern = 'PageBy/PageBy.i18n.$CODE.php'; |
1467 | | - |
1468 | | - protected $exportStart = '$messages = array('; |
1469 | | - protected $exportEnd = ');'; |
1470 | 1465 | } |
1471 | 1466 | |
1472 | 1467 | 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 @@ |
45 | 45 | $this->nominor = isset($argv['nominor']) ? $argv['nominor'] : true; |
46 | 46 | if ( $this->nominor === 'false' || $this->nominor === 'no' || $this->nominor === '0' ) |
47 | 47 | $this->nominor = false; |
48 | | - |
| 48 | + |
49 | 49 | $this->nobot = isset($argv['nobot']) ? $argv['nobot'] : true; |
50 | 50 | if ( $this->nobot === 'false' || $this->nobot === 'no' || $this->nobot === '0' ) |
51 | 51 | $this->nobot = false; |
52 | | - |
| 52 | + |
53 | 53 | $this->noanon = isset($argv['noanon']) ? $argv['noanon'] : false; |
54 | 54 | if ( $this->noanon === 'false' || $this->noanon === 'no' || $this->noanon === '0' ) |
55 | 55 | $this->noanon = false; |
56 | | - |
| 56 | + |
57 | 57 | $this->showfirst = isset($argv['creation']) ? $argv['creation'] : true; |
58 | 58 | if ( $this->showfirst === 'false' || $this->showfirst === 'no' || $this->showfirst === '0' ) |
59 | 59 | $this->showfirst = false; |
60 | | - |
| 60 | + |
61 | 61 | $this->showcomments = isset($argv['comments']) ? $argv['comments'] : true; |
62 | 62 | if ( $this->showcomments === 'false' || $this->showcomments === 'no' || $this->showcomments === '0' ) |
63 | 63 | $this->showcomments = false; |
64 | | - |
| 64 | + |
65 | 65 | $this->showtime = isset($argv['time']) ? $argv['time'] : false; |
66 | 66 | if ( $this->showtime === 'false' || $this->showtime === 'no' || $this->showtime === '0' ) |
67 | 67 | $this->showtime = false; |
— | — | @@ -69,7 +69,7 @@ |
70 | 70 | function collectInfo( ) { |
71 | 71 | $dbr = wfGetDB( DB_SLAVE ); |
72 | 72 | list( $trevision, $tuser, $tuser_groups ) = $dbr->tableNamesN( 'revision', '$tuser', 'user_groups' ); |
73 | | - |
| 73 | + |
74 | 74 | #TODO: use query cache, check against page-timestamp |
75 | 75 | #NOTE: if $this->otherpage == false, the parser cache already takes care of this... |
76 | 76 | |
— | — | @@ -87,13 +87,13 @@ |
88 | 88 | $edits = 0; |
89 | 89 | while ($row = $dbr->fetchObject( $res )) { |
90 | 90 | $edits += 1; |
91 | | - |
| 91 | + |
92 | 92 | if ($first===NULL) $first = $row; |
93 | 93 | $last = $row; |
94 | | - |
95 | | - if ($this->nominor && $row->rev_minor_edit) continue; |
| 94 | + |
| 95 | + if ($this->nominor && $row->rev_minor_edit) continue; |
96 | 96 | if ($this->noanon && !$row->rev_user) continue; //FIXE: this also ignores imported revisions! |
97 | | - |
| 97 | + |
98 | 98 | if (!isset($users[$row->rev_user])) { |
99 | 99 | $users[$row->rev_user] = array( |
100 | 100 | 'name' => $row->rev_user ? $row->rev_user_text : NULL, |
— | — | @@ -114,9 +114,9 @@ |
115 | 115 | |
116 | 116 | if ($userids) { |
117 | 117 | $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 ) . " ) "; |
119 | 119 | $sql .= "AND ug_group = 'bot' "; |
120 | | - |
| 120 | + |
121 | 121 | $res = $dbr->query( $sql, 'PageByRenderer::collectInfo#bots' ); |
122 | 122 | while ($row = $dbr->fetchObject( $res )) { |
123 | 123 | unset($users[$row->ug_user]); #strip bots |
— | — | @@ -133,13 +133,11 @@ |
134 | 134 | |
135 | 135 | return $info; |
136 | 136 | } |
137 | | - |
| 137 | + |
138 | 138 | function renderPageBy( ) { |
139 | 139 | global $wgContLang, $wgUser; |
140 | 140 | $sk = $wgUser->getSkin(); |
141 | 141 | |
142 | | - loadPageByI18n(); |
143 | | - |
144 | 142 | if ($this->otherpage) { |
145 | 143 | #TODO: if we can't use the parser cache, we should use the query cache |
146 | 144 | $this->parser->disableCache(); |
— | — | @@ -149,9 +147,10 @@ |
150 | 148 | if (!$info) return false; #TODO: report error! |
151 | 149 | |
152 | 150 | extract($info); |
153 | | - |
| 151 | + |
154 | 152 | $html = '<ul class="pageby">'; |
155 | 153 | |
| 154 | + wfLoadExtensionMessages( 'PageBy' ); |
156 | 155 | #TODO: somehere link the page history. And mention the page name, if it's not the local page. |
157 | 156 | |
158 | 157 | if ($this->showfirst) { |
— | — | @@ -160,10 +159,10 @@ |
161 | 160 | $date = $this->showtime ? $wgContLang->timeanddate($first->rev_timestamp) : $wgContLang->date($first->rev_timestamp); |
162 | 161 | $diff = $this->title->getLocalURL('diff=' . $first->rev_id); |
163 | 162 | $comment = htmlspecialchars( $first->rev_comment ); |
164 | | - |
| 163 | + |
165 | 164 | $html .= '<li class="pageby-first">'; |
166 | 165 | $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>'; |
168 | 167 | $html .= '</li>'; |
169 | 168 | $html .= "\n"; |
170 | 169 | } |
— | — | @@ -206,16 +205,14 @@ |
207 | 206 | $comment = htmlspecialchars( $last->rev_comment ); |
208 | 207 | |
209 | 208 | $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>'; |
212 | 211 | $html .= '</li>'; |
213 | 212 | } |
214 | 213 | |
215 | 214 | $html .= '</ul>'; |
216 | 215 | $html .= "\n"; |
217 | | - |
| 216 | + |
218 | 217 | return $html; |
219 | 218 | } |
220 | | - |
221 | 219 | } |
222 | | - |
Index: trunk/extensions/PageBy/PageBy.i18n.php |
— | — | @@ -1,7 +1,6 @@ |
2 | 2 | <?php |
3 | | - |
4 | 3 | /** |
5 | | - * Internationalisation file for the PageBy extension |
| 4 | + * Internationalisation file for the extension PageBy |
6 | 5 | * |
7 | 6 | * @package MediaWiki |
8 | 7 | * @subpackage Extensions |
— | — | @@ -10,8 +9,224 @@ |
11 | 10 | * @licence GNU General Public Licence 2.0 or later |
12 | 11 | */ |
13 | 12 | |
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(); |
18 | 14 | |
| 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 @@ |
10 | 10 | * @licence GNU General Public Licence 2.0 or later |
11 | 11 | */ |
12 | 12 | |
13 | | - |
14 | 13 | if( !defined( 'MEDIAWIKI' ) ) { |
15 | 14 | echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" ); |
16 | 15 | die( 1 ); |
17 | 16 | } |
18 | 17 | |
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', |
22 | 22 | '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>', |
24 | 24 | ); |
25 | 25 | |
| 26 | +$dir = dirname(__FILE__) . '/'; |
| 27 | +$wgExtensionMessagesFiles['PageBy'] = $dir . 'PageBy.i18n.php'; |
26 | 28 | $wgExtensionFunctions[] = "wfPageByExtension"; |
27 | 29 | |
28 | | -$wgAutoloadClasses['PageByRenderer'] = dirname( __FILE__ ) . '/PageByRenderer.php'; |
| 30 | +$wgAutoloadClasses['PageByRenderer'] = $dir. 'PageByRenderer.php'; |
29 | 31 | |
30 | 32 | function wfPageByExtension() { |
31 | 33 | global $wgParser; |
32 | 34 | $wgParser->setHook( "pageby", "newsxRenderPageBy" ); |
33 | 35 | } |
34 | 36 | |
35 | | - |
36 | 37 | function newsxRenderPageBy( $page, $argv, &$parser ) { |
37 | 38 | $renderer = new PageByRenderer($page, $argv, $parser); |
38 | 39 | return $renderer->renderPageBy(); |
39 | 40 | } |
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 | | - |