jenkins-bot has submitted this change and it was merged.

Change subject: Move als->gsw override to ext.uls.init
......................................................................


Move als->gsw override to ext.uls.init

So that it is loaded for compact language links. The ext.mediawiki.uls
module is starting to look very empty now can could be removed easily
in follow-up. ext.uls.init depends on jquery.uls.data so this is safe.

Bug: T139949
Change-Id: Icac10f073e122284723c48782c2a1cf7f10b45ec
---
M resources/js/ext.uls.init.js
M resources/js/ext.uls.mediawiki.js
2 files changed, 10 insertions(+), 10 deletions(-)

Approvals:
  Amire80: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/resources/js/ext.uls.init.js b/resources/js/ext.uls.init.js
index 9fbd63d..0e10fbc 100644
--- a/resources/js/ext.uls.init.js
+++ b/resources/js/ext.uls.init.js
@@ -20,6 +20,16 @@
 ( function ( $, mw ) {
        'use strict';
 
+       /*
+        * The 'als' is used in a non-standard way in MediaWiki -
+        * it may be used to represent the Allemanic language,
+        * the standard code of which is 'gsw', while 'als'
+        * is ISO 639 3 refers to Tosk Albanian, which is
+        * not currently used in any way in MediaWiki.
+        * This local fix adds a redirect for it.
+        */
+       $.uls.data.addLanguage( 'als', { target: 'gsw' } );
+
        mw.uls = mw.uls || {};
        mw.uls.previousLanguagesStorageKey = 'uls-previous-languages';
        mw.uls.languageSettingsModules = [ 'ext.uls.inputsettings', 
'ext.uls.displaysettings' ];
diff --git a/resources/js/ext.uls.mediawiki.js 
b/resources/js/ext.uls.mediawiki.js
index 8be6708..73e055d 100644
--- a/resources/js/ext.uls.mediawiki.js
+++ b/resources/js/ext.uls.mediawiki.js
@@ -30,14 +30,4 @@
        $.fn.uls.Constructor.prototype.render = function () {
                this.$languageFilter.addClass( 'noime' );
        };
-
-       /*
-        * The 'als' is used in a non-standard way in MediaWiki -
-        * it may be used to represent the Allemanic language,
-        * the standard code of which is 'gsw', while 'als'
-        * is ISO 639 3 refers to Tosk Albanian, which is
-        * not currently used in any way in MediaWiki.
-        * This local fix adds a redirect for it.
-        */
-       $.uls.data.addLanguage( 'als', { target: 'gsw' } );
 }( jQuery, mediaWiki ) );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Icac10f073e122284723c48782c2a1cf7f10b45ec
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/UniversalLanguageSelector
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>
Gerrit-Reviewer: Amire80 <[email protected]>
Gerrit-Reviewer: KartikMistry <[email protected]>
Gerrit-Reviewer: Santhosh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to