Santhosh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/115875

Change subject: Fix: Live preview of languages removes labels from the language 
panel
......................................................................

Fix: Live preview of languages removes labels from the language panel

MW ULS uses its api to load the localization. Avoid the conflict with
i18n.load method. Directly use the i18n message stores load method

Bug: 61990
Change-Id: I7ea7e7fc31a0831ae2b2c4b4301fbe81109fdf9d
---
M resources/js/ext.uls.i18n.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UniversalLanguageSelector 
refs/changes/75/115875/1

diff --git a/resources/js/ext.uls.i18n.js b/resources/js/ext.uls.i18n.js
index a11b662..e854c19 100644
--- a/resources/js/ext.uls.i18n.js
+++ b/resources/js/ext.uls.i18n.js
@@ -51,7 +51,7 @@
                if ( i18n.messageStore.messages[locale] ) {
                        return $.Deferred().resolve();
                }
-               return i18n.load(
+               return i18n.messageStore.load(
                        mw.util.wikiScript( 'api' ) + '?' + $.param( {
                                action: 'ulslocalization',
                                language: locale

-- 
To view, visit https://gerrit.wikimedia.org/r/115875
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7ea7e7fc31a0831ae2b2c4b4301fbe81109fdf9d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UniversalLanguageSelector
Gerrit-Branch: master
Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to