r51015 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51014‎ | r51015 | r51016 >
Date:13:15, 26 May 2009
Author:thedevilonline
Status:deferred
Tags:
Comment:
- update SQL
- fixed multi-language support for extensions
Modified paths:
  • /trunk/extensions/LocalisationUpdate/LocalisationUpdate.class.php (modified) (history)
  • /trunk/extensions/LocalisationUpdate/schema.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/LocalisationUpdate/LocalisationUpdate.class.php
@@ -443,12 +443,12 @@
444444
445445 // If we want to save the changes
446446 if ( $saveResults === true && !empty($changedStrings) && is_array($changedStrings)) {
447 - self::myLog( "--Checking languagecode {$langcode}--" );
 447+ self::myLog( "--Checking languagecode {$language}--" );
448448 // The save them
449 - $updates = self::saveChanges( $changedStrings, $forbiddenKeys, $base_messages, $langcode );
450 - self::myLog( "{$updates} messages updated for {$langcode}." );
 449+ $updates = self::saveChanges( $changedStrings, $forbiddenKeys, $base_messages, $language );
 450+ self::myLog( "{$updates} messages updated for {$language}." );
451451 } elseif($saveResults === true) {
452 - self::myLog( "--{$langcode} hasn't changed--" );
 452+ self::myLog( "--{$language} hasn't changed--" );
453453 }
454454 }
455455
Index: trunk/extensions/LocalisationUpdate/schema.sql
@@ -1,12 +1,10 @@
22 -- SQL tables for LocalisationUpdate extension
33 CREATE TABLE /*$wgDBprefix*/localisation (
4 - lo_id int unsigned NOT NULL auto_increment,
5 -
64 lo_key varchar(255) NOT NULL,
75 lo_language varchar(10) NOT NULL,
86 lo_value mediumblob NOT NULL,
97
10 - PRIMARY KEY (lo_id)
 8+ PRIMARY KEY (lo_key,lo_language)
119 ) /*$wgDBTableOptions*/;
1210
1311 CREATE TABLE /*$wgDBprefix*/localisation_file_hash (

Status & tagging log