Index: trunk/extensions/LocalisationUpdate/LocalisationUpdate.class.php |
— | — | @@ -443,12 +443,12 @@ |
444 | 444 | |
445 | 445 | // If we want to save the changes |
446 | 446 | if ( $saveResults === true && !empty($changedStrings) && is_array($changedStrings)) { |
447 | | - self::myLog( "--Checking languagecode {$langcode}--" ); |
| 447 | + self::myLog( "--Checking languagecode {$language}--" ); |
448 | 448 | // 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}." ); |
451 | 451 | } elseif($saveResults === true) { |
452 | | - self::myLog( "--{$langcode} hasn't changed--" ); |
| 452 | + self::myLog( "--{$language} hasn't changed--" ); |
453 | 453 | } |
454 | 454 | } |
455 | 455 | |
Index: trunk/extensions/LocalisationUpdate/schema.sql |
— | — | @@ -1,12 +1,10 @@ |
2 | 2 | -- SQL tables for LocalisationUpdate extension |
3 | 3 | CREATE TABLE /*$wgDBprefix*/localisation ( |
4 | | - lo_id int unsigned NOT NULL auto_increment, |
5 | | - |
6 | 4 | lo_key varchar(255) NOT NULL, |
7 | 5 | lo_language varchar(10) NOT NULL, |
8 | 6 | lo_value mediumblob NOT NULL, |
9 | 7 | |
10 | | - PRIMARY KEY (lo_id) |
| 8 | + PRIMARY KEY (lo_key,lo_language) |
11 | 9 | ) /*$wgDBTableOptions*/; |
12 | 10 | |
13 | 11 | CREATE TABLE /*$wgDBprefix*/localisation_file_hash ( |