Index: trunk/extensions/LocalisationUpdate/LocalisationUpdate.class.php |
— | — | @@ -298,13 +298,14 @@ |
299 | 299 | |
300 | 300 | $new_messages = self::readFile( $langcode ); |
301 | 301 | foreach ( $changedStrings as $key => $value ) { |
302 | | - // If this message wasn't changed in English, and is in fact set |
303 | | - if ( !isset( $forbiddenKeys[$key] ) && isset( $compare_messages[$key] ) ) { |
| 302 | + // If this message wasn't changed in English |
| 303 | + if ( !isset( $forbiddenKeys[$key] ) ) { |
304 | 304 | $new_messages[$key] = $base_messages[$key]; |
305 | 305 | |
306 | 306 | // Output extra logmessages when needed |
307 | 307 | if ( $verbose ) { |
308 | | - self::myLog( "Updated message {$key} from '{$compare_messages[$key]}' to '{$base_messages[$key]}'" ); |
| 308 | + $oldmsg = isset( $compare_messages[$key] ) ? "'{$compare_messages[$key]}'" : 'not set'; |
| 309 | + self::myLog( "Updated message {$key} from $oldmsg to '{$base_messages[$key]}'" ); |
309 | 310 | } |
310 | 311 | |
311 | 312 | // Update the counter |