Open main menu
Home
Random
Log in
Settings
About wiki
Terms and conditions of use
wiki
Search
Changes
← Older edit
Newer edit →
MediaWiki:Common.js
(view source)
Revision as of 08:03, 7 March 2020
306 bytes added
,
08:03, 7 March 2020
no edit summary
Line 15:
Line 15:
$( document ).ready(function() {
$( document ).ready(function() {
+
+
var UIlang = mw.config.get( 'wgUserLanguage' );
+
switch(UIlang){
+
case 'en_ca':
+
case 'en':
+
$('#n-help a').attr('href', $('#n-help a').attr('href')+'/en/support/home');
+
break;
+
case 'fr_ca':
+
case 'fr':
+
$('#n-help a').attr('href', $('#n-help a').attr('href')+'/fr/support/home');
+
break;
+
default:
+
break;
+
}
var lang = getCookie('lang') !== "undefined" ? getCookie('lang') : 'en';
var lang = getCookie('lang') !== "undefined" ? getCookie('lang') : 'en';
Admin.ethan
IMadmin,
Bureaucrats
,
Administrators
3
edits