mirror of https://github.com/apache/cloudstack.git
Make default language English, if no cookie set
This commit is contained in:
parent
1cd1152dd0
commit
cebbce42a7
|
|
@ -89,6 +89,12 @@
|
|||
$.cookie('lang', $(this).val());
|
||||
document.location.reload();
|
||||
});
|
||||
|
||||
// Set default language
|
||||
if (!$.cookie('lang')) {
|
||||
$.cookie('lang', 'en');
|
||||
}
|
||||
|
||||
$languageSelect.val($.cookie('lang'));
|
||||
};
|
||||
})(jQuery, cloudStack);
|
||||
|
|
|
|||
Loading…
Reference in New Issue