def set_user_lang(user, user_language=None):
 from frappe.translate import get_user_lang
 local.lang = get_user_lang(user)

def set_user_lang ( user , user_language = None ) : from frappe . translate import get_user_lang local . lang = get_user_lang ( user )
guess and set user language for the session .