fixed i18n fallback

This commit is contained in:
Daniel Kinzler 2007-11-15 23:41:16 +00:00
parent 7ecf44c8b7
commit f246429dd2

View file

@ -237,7 +237,14 @@ function loadGadgetsI18n() {
include( $f );
$f= dirname( __FILE__ ) . '/Gadgets.i18n.' . $wgLang->getCode() . '.php';
if ( file_exists( $f ) ) include( $f );
if ( file_exists( $f ) ) {
$messages_base= $messages;
$messages= array();
include( $f );
$messages = array_merge( $messages_base, $messages_base );
}
$initialized = true;
$wgMessageCache->addMessages( $messages );