[fix] on setup wizard language selection and load, set it as system default language

This commit is contained in:
Anand Doshi 2015-04-04 16:15:04 +05:30
parent 85e5d46370
commit e4580447d0

View File

@ -445,12 +445,11 @@ def login_as_first_user(args):
@frappe.whitelist()
def load_messages(language):
frappe.clear_cache()
lang = get_lang_dict()[language]
frappe.local.lang = lang
set_default_language(language)
m = get_dict("page", "setup-wizard")
m.update(get_dict("boot"))
send_translations(m)
return lang
return frappe.local.lang
@frappe.whitelist()
def load_languages():