r50789 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50788‎ | r50789 | r50790 >
Date:19:38, 19 May 2009
Author:thedevilonline
Status:deferred
Tags:
Comment:
- Added initial localisation for the LocalisationUpdate extensions
- Removed excessive comments in install.sql
- Added known issues to the header of LocalisationUpdate.php as well
Modified paths:
  • /trunk/extensions/LocalisationUpdate/LocalisationUpdate.i18n.php (added) (history)
  • /trunk/extensions/LocalisationUpdate/LocalisationUpdate.php (modified) (history)
  • /trunk/extensions/LocalisationUpdate/install.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/LocalisationUpdate/install.sql
@@ -1,24 +1,5 @@
2 -
32 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
43
5 -
6 -
7 -
84 CREATE TABLE IF NOT EXISTS `localisation` (
95 `id` int(10) unsigned NOT NULL auto_increment,
106 `identifier` varchar(2048) collate utf8_bin NOT NULL,
@@ -27,12 +8,6 @@
289 PRIMARY KEY (`id`)
2910 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=13858 ;
3011
31 -
32 -
3312 CREATE TABLE IF NOT EXISTS `localisation_file_hash` (
3413 `file` varchar(250) NOT NULL,
3514 `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
19 + native
Index: trunk/extensions/LocalisationUpdate/LocalisationUpdate.php
@@ -1,12 +1,23 @@
22 <?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+
311 //Info about me!
412 $wgExtensionCredits['other'][] = array(
513 'name' => 'LocalisationUpdate',
614 'author' => 'Tom Maaswinkel',
715 'version' => '0.1',
816 'description' => 'Extension to keep the localized messages as up to date as possible',
 17+ 'descriptionmsg' => 'localisationupdate-desc',
918 );
1019
 20+$wgExtensionMessagesFiles['LocalisationUpdate'] = dirname( __FILE__ ) . '/LocalisationUpdate.i18n.php';
 21+
1122 //Use the right hook
1223 $wgHooks['MessageNotInMwNs'][] = "FindUpdatedMessage";
1324

Status & tagging log