diff --git a/ui/scripts/cloudStack.js b/ui/scripts/cloudStack.js index 076bcd88f14..7d3ebd069f7 100644 --- a/ui/scripts/cloudStack.js +++ b/ui/scripts/cloudStack.js @@ -37,6 +37,9 @@ }); $(function() { + // Get language + g_lang = $.cookie('lang') ? $.cookie('lang') : 'en'; + /** * Generic error handling */ @@ -362,7 +365,7 @@ // EULA check $.ajax({ - url: 'eula.' + $.cookie('lang') + '.html', + url: 'eula.' + g_lang + '.html', dataType: 'html', success: function(html) { cloudStack.uiCustom.login($.extend(loginArgs, { eula: html, hasLogo: true }));