Index: trunk/extensions/UnicodeConverter/UnicodeConverter_body.php |
— | — | @@ -4,17 +4,17 @@ |
5 | 5 | exit( 1 ); |
6 | 6 | } |
7 | 7 | |
8 | | -wfLoadExtensionMessages( 'UnicodeConverter' ); |
9 | | - |
10 | | -class UnicodeConverter extends SpecialPage |
| 8 | +class SpecialUnicodeConverter extends SpecialPage |
11 | 9 | { |
12 | | - function UnicodeConverter() { |
| 10 | + function __construct() { |
13 | 11 | SpecialPage::SpecialPage("UnicodeConverter"); |
14 | 12 | } |
15 | 13 | |
16 | 14 | function execute( $par ) { |
17 | 15 | global $wgRequest, $wgOut, $wgTitle; |
18 | 16 | |
| 17 | + wfLoadExtensionMessages( 'UnicodeConverter' ); |
| 18 | + |
19 | 19 | $this->setHeaders(); |
20 | 20 | |
21 | 21 | $q = $wgRequest->getText( 'q' ); |
Index: trunk/extensions/UnicodeConverter/UnicodeConverter.i18n.php |
— | — | @@ -1,7 +1,7 @@ |
2 | 2 | <?php |
3 | 3 | /** |
4 | 4 | * Internationalisation file for extension UnicodeConvertor. |
5 | | - * Created by Bertrand GRON |
| 5 | + * Created by Bertrand GRONDIN |
6 | 6 | * |
7 | 7 | * @addtogroup Extensions |
8 | 8 | */ |
Index: trunk/extensions/UnicodeConverter/UnicodeConverter.php |
— | — | @@ -12,16 +12,15 @@ |
13 | 13 | |
14 | 14 | $wgExtensionCredits['specialpage'][] = array( |
15 | 15 | 'name' => 'Unicode Converter', |
16 | | - //'version' => '1.0', |
| 16 | + //'version' => '1.1', |
17 | 17 | 'author' => 'Tim Starling', |
18 | 18 | 'description' => 'A simple example of a special page module. Given a string in UTF-8, it converts it to HTML entities suitable for an ISO 8859-1 web page', |
19 | 19 | 'url' => 'http://www.mediawiki.org/wiki/Extension:UnicodeConvertor', |
20 | 20 | 'descriptionmsg' => 'unicodeconverter-desc', |
21 | 21 | ); |
22 | 22 | |
23 | | -if ( !function_exists( 'extAddSpecialPage' ) ) { |
24 | | - require( dirname(__FILE__) . '/../ExtensionFunctions.php' ); |
25 | | -} |
26 | | -extAddSpecialPage( dirname(__FILE__) . '/UnicodeConverter_body.php', 'UnicodeConverter', 'UnicodeConverter' ); |
27 | 23 | $dir = dirname(__FILE__) . '/'; |
28 | 24 | $wgExtensionMessagesFiles['UnicodeConverter'] = $dir . 'UnicodeConverter.i18n.php'; |
| 25 | +$wgExtensionAliasesFiles['UnicodeConverter'] = $dir . 'UnicodeConverter.alias.php'; |
| 26 | +$wgAutoloadClasses['SpecialUnicodeConverter'] = $dir . 'UnicodeConverter_body.php'; |
| 27 | +$wgSpecialPages['UnicodeConverter'] = 'SpecialUnicodeConverter'; |
Index: trunk/extensions/UnicodeConverter/UnicodeConverter.alias.php |
— | — | @@ -0,0 +1,15 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages |
| 5 | + * |
| 6 | + */ |
| 7 | + |
| 8 | +$aliases = array(); |
| 9 | + |
| 10 | +$aliases['en'] = array( |
| 11 | + 'UnicodeConvertor' => array( 'UnicodeConvertor' ), |
| 12 | +); |
| 13 | + |
| 14 | +$aliases['nl'] = array( |
| 15 | + 'UnicodeConvertor' => array( 'UnicodeConverteren' ), |
| 16 | +); |
Property changes on: trunk/extensions/UnicodeConverter/UnicodeConverter.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 17 | + native |
Added: svn:keywords |
2 | 18 | + Id |