Update jquery.i18n from upstream, use its default message store
In Iddef0805ab a custom message store was introduced for ULS, but there were updates in jquery.i18n that allows us to use default message store again. (see https://github.com/wikimedia/jquery.i18n/pull/40) Change-Id: I86cb7a44efa83e5811824cd1104c6be11b1e2925
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
this.$languageFilter.addClass( 'noime' );
|
||||
};
|
||||
|
||||
var jsonLoader,
|
||||
var jsonLoader = null,
|
||||
initialized = false,
|
||||
currentLang = mw.config.get( 'wgUserLanguage' ),
|
||||
logEventQueue = $.Callbacks( 'memory once' );
|
||||
@@ -211,14 +211,8 @@
|
||||
*/
|
||||
$.uls.data.addLanguage( 'als', { target: 'gsw' } );
|
||||
|
||||
// JavaScript side i18n initialization
|
||||
$.i18n( {
|
||||
locale: currentLang,
|
||||
messageStore: mw.uls.messageStore
|
||||
} );
|
||||
|
||||
if ( !jsonLoader ) {
|
||||
jsonLoader = mw.uls.messageStore.load( currentLang );
|
||||
jsonLoader = mw.uls.loadLocalization( currentLang );
|
||||
} else {
|
||||
jsonLoader.done( function () {
|
||||
initialized = true;
|
||||
|
||||
Reference in New Issue
Block a user