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:
Santhosh Thottingal
2013-07-23 15:32:45 +05:30
parent f144cd5c16
commit 2159822145
7 changed files with 116 additions and 299 deletions

View File

@@ -316,11 +316,9 @@
* @param {String} language Language code
*/
preview: function ( language ) {
var displaySettings = this,
i18n = $.i18n();
var displaySettings = this;
i18n.locale = language;
i18n.messageStore.load( i18n.locale ).done( function () {
mw.uls.loadLocalization( language ).done( function () {
displaySettings.i18n();
} );
},