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
This commit is contained in:
@@ -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' ];
|
||||
|
||||
@@ -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 ) );
|
||||
|
||||
Reference in New Issue
Block a user