Index: trunk/extensions/Translate/TranslatePage.php |
— | — | @@ -1,6 +1,4 @@ |
2 | 2 | <?php |
3 | | -if ( !defined( 'MEDIAWIKI' ) ) die(); |
4 | | - |
5 | 3 | /** |
6 | 4 | * Implements the core of Translate extension - a special page which shows |
7 | 5 | * a list of messages in a format defined by Tasks. |
— | — | @@ -9,6 +7,7 @@ |
10 | 8 | * @copyright Copyright © 2006-2007 Niklas Laxström |
11 | 9 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
12 | 10 | */ |
| 11 | + |
13 | 12 | class SpecialTranslate extends SpecialPage { |
14 | 13 | const MSG = 'translate-page-'; |
15 | 14 | |
Index: trunk/extensions/Translate/MessageCollection.php |
— | — | @@ -1,5 +1,4 @@ |
2 | 2 | <?php |
3 | | -if ( !defined( 'MEDIAWIKI' ) ) die(); |
4 | 3 | /** |
5 | 4 | * An extension to ease the translation of Mediawiki |
6 | 5 | * |
Index: trunk/extensions/Translate/SpecialLanguageStats.php |
— | — | @@ -1,6 +1,4 @@ |
2 | 2 | <?php |
3 | | -if ( !defined( 'MEDIAWIKI' ) ) die(); |
4 | | - |
5 | 3 | /** |
6 | 4 | * Implements a special page which givens translation statistics for a given |
7 | 5 | * set of message groups. Message group names can be entered (pipe separated) |
Index: trunk/extensions/Translate/SpecialImportTranslations.php |
— | — | @@ -1,6 +1,4 @@ |
2 | 2 | <?php |
3 | | -if ( !defined( 'MEDIAWIKI' ) ) die(); |
4 | | - |
5 | 3 | /** |
6 | 4 | * Special page to import po files exported using Translate extension. |
7 | 5 | * |
Index: trunk/extensions/Translate/SpecialTranslationStats.php |
— | — | @@ -1,8 +1,6 @@ |
2 | 2 | <?php |
3 | | -if ( !defined( 'MEDIAWIKI' ) ) die(); |
4 | 3 | |
5 | 4 | class SpecialTranslationStats extends SpecialPage { |
6 | | - |
7 | 5 | public function __construct() { |
8 | 6 | parent::__construct( 'TranslationStats' ); |
9 | 7 | $this->includable( true ); |
— | — | @@ -395,7 +393,7 @@ |
396 | 394 | $filters['group'] = trim( $this->opts['group'] ) !== ''; |
397 | 395 | |
398 | 396 | foreach ( $groups as $group ) { |
399 | | - |
| 397 | + |
400 | 398 | foreach ( $codes as $code ) { |
401 | 399 | if ( $code !== '' ) $key = "$group ($code)"; |
402 | 400 | else $key = $group; |
Index: trunk/extensions/Translate/SpecialTranslationChanges.php |
— | — | @@ -1,9 +1,8 @@ |
2 | 2 | <?php |
3 | | -if ( !defined( 'MEDIAWIKI' ) ) die(); |
4 | | - |
5 | 3 | /** |
6 | 4 | * Implementation of Special:TranslationChanges special page. |
7 | 5 | */ |
| 6 | + |
8 | 7 | class SpecialTranslationChanges extends SpecialPage { |
9 | 8 | const MSG = 'translationchanges-'; |
10 | 9 | |
Index: trunk/extensions/Translate/TranslateEditAddons.php |
— | — | @@ -1,6 +1,4 @@ |
2 | 2 | <?php |
3 | | -if ( !defined( 'MEDIAWIKI' ) ) die(); |
4 | | - |
5 | 3 | /** |
6 | 4 | * Tools for edit page view to aid translators. This implements the so called |
7 | 5 | * old style editing, which extends the normal edit page. |
— | — | @@ -10,6 +8,7 @@ |
11 | 9 | * @copyright Copyright © 2007-2009 Niklas Laxström |
12 | 10 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
13 | 11 | */ |
| 12 | + |
14 | 13 | class TranslateEditAddons { |
15 | 14 | const MSG = 'translate-edit-'; |
16 | 15 | |
— | — | @@ -339,4 +338,3 @@ |
340 | 339 | } |
341 | 340 | |
342 | 341 | } |
343 | | - |
Index: trunk/extensions/Translate/TranslateUtils.php |
— | — | @@ -1,6 +1,4 @@ |
2 | 2 | <?php |
3 | | -if ( !defined( 'MEDIAWIKI' ) ) die(); |
4 | | - |
5 | 3 | /** |
6 | 4 | * This class contains some static helper functions for other classes. |
7 | 5 | * |
— | — | @@ -8,6 +6,7 @@ |
9 | 7 | * @copyright Copyright © 2007, 2009 Niklas Laxström |
10 | 8 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
11 | 9 | */ |
| 10 | + |
12 | 11 | class TranslateUtils { |
13 | 12 | const MSG = 'translate-'; |
14 | 13 | |
Index: trunk/extensions/Translate/SpecialMagic.php |
— | — | @@ -1,10 +1,9 @@ |
2 | 2 | <?php |
3 | | -if ( !defined( 'MEDIAWIKI' ) ) die(); |
4 | | - |
5 | 3 | /** |
6 | 4 | * This special page helps with the translations of MediaWiki features that are |
7 | 5 | * not in the main messages array. |
8 | 6 | */ |
| 7 | + |
9 | 8 | class SpecialMagic extends SpecialPage { |
10 | 9 | /** Message prefix for translations */ |
11 | 10 | const MSG = 'translate-magic-'; |
Index: trunk/extensions/Translate/SpecialTranslations.php |
— | — | @@ -1,6 +1,4 @@ |
2 | 2 | <?php |
3 | | -if ( !defined( 'MEDIAWIKI' ) ) die(); |
4 | | - |
5 | 3 | /** |
6 | 4 | * Implements a special page which shows all translations for a message. |
7 | 5 | * Bits taken from SpecialPrefixindex.php and TranslateTasks.php |
— | — | @@ -11,6 +9,7 @@ |
12 | 10 | * @copyright Copyright © 2009 Niklas Laxström |
13 | 11 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
14 | 12 | */ |
| 13 | + |
15 | 14 | class SpecialTranslations extends SpecialAllpages { |
16 | 15 | function __construct() { |
17 | 16 | parent::__construct( 'Translations' ); |