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:
Brian Federle 2012-02-22 11:06:27 -08:00
parent 8496635563
commit c81cc55877
2 changed files with 7 additions and 1 deletions

View File

@ -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 }));

View File

@ -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);