mirror of https://github.com/apache/cloudstack.git
EULA/Localization updates
-Make default language English, if no cookie set -Get EULA specific to selected language reviewed-by: sonny
This commit is contained in:
parent
8496635563
commit
c81cc55877
|
|
@ -313,7 +313,7 @@
|
|||
|
||||
// EULA check
|
||||
$.ajax({
|
||||
url: 'eula.html',
|
||||
url: 'eula.' + $.cookie('lang') + '.html',
|
||||
dataType: 'html',
|
||||
success: function(html) {
|
||||
cloudStack.uiCustom.login($.extend(loginArgs, { eula: html, hasLogo: true }));
|
||||
|
|
|
|||
|
|
@ -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