Index: trunk/extensions/LocalisationUpdate/install.sql |
— | — | @@ -1,24 +1,5 @@ |
2 | | - |
3 | 2 | SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; |
4 | 3 | |
5 | | - |
6 | | - |
7 | | - |
8 | 4 | CREATE TABLE IF NOT EXISTS `localisation` ( |
9 | 5 | `id` int(10) unsigned NOT NULL auto_increment, |
10 | 6 | `identifier` varchar(2048) collate utf8_bin NOT NULL, |
— | — | @@ -27,12 +8,6 @@ |
28 | 9 | PRIMARY KEY (`id`) |
29 | 10 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=13858 ; |
30 | 11 | |
31 | | - |
32 | | - |
33 | 12 | CREATE TABLE IF NOT EXISTS `localisation_file_hash` ( |
34 | 13 | `file` varchar(250) NOT NULL, |
35 | 14 | `hash` varchar(50) NOT NULL, |
Index: trunk/extensions/LocalisationUpdate/LocalisationUpdate.i18n.php |
— | — | @@ -0,0 +1,7 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +$messages = array(); |
| 5 | + |
| 6 | +$messages['en'] = array( |
| 7 | + 'localisationupdate-desc' => 'Extension to keep the localized messages as up to date as possible', |
| 8 | +} |
\ No newline at end of file |
Property changes on: trunk/extensions/LocalisationUpdate/LocalisationUpdate.i18n.php |
___________________________________________________________________ |
Name: svn:eol-style |
1 | 9 | + native |
Index: trunk/extensions/LocalisationUpdate/LocalisationUpdate.php |
— | — | @@ -1,12 +1,23 @@ |
2 | 2 | <?php |
| 3 | +/* |
| 4 | +KNOWN ISSUES: |
| 5 | +- If no cURL is supported anf url_fopen[1] is disabled the |
| 6 | + extension will not update |
| 7 | +- Only works with SVN revision 50605 or later of the |
| 8 | + Mediawiki core |
| 9 | +*/ |
| 10 | + |
3 | 11 | //Info about me! |
4 | 12 | $wgExtensionCredits['other'][] = array( |
5 | 13 | 'name' => 'LocalisationUpdate', |
6 | 14 | 'author' => 'Tom Maaswinkel', |
7 | 15 | 'version' => '0.1', |
8 | 16 | 'description' => 'Extension to keep the localized messages as up to date as possible', |
| 17 | + 'descriptionmsg' => 'localisationupdate-desc', |
9 | 18 | ); |
10 | 19 | |
| 20 | +$wgExtensionMessagesFiles['LocalisationUpdate'] = dirname( __FILE__ ) . '/LocalisationUpdate.i18n.php'; |
| 21 | + |
11 | 22 | //Use the right hook |
12 | 23 | $wgHooks['MessageNotInMwNs'][] = "FindUpdatedMessage"; |
13 | 24 | |