mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-23 23:13:27 +00:00
fixed i18n fallback
This commit is contained in:
parent
7ecf44c8b7
commit
f246429dd2
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue