From fbc701dbd32cf97154dbf3ecf9c7368d524ba03f Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Sun, 5 Apr 2015 16:36:49 +0530 Subject: [PATCH] [fix] Guest user's language should be the one that is set in the browser and should not be cached --- frappe/sessions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frappe/sessions.py b/frappe/sessions.py index 2231c31283..2a47061f05 100644 --- a/frappe/sessions.py +++ b/frappe/sessions.py @@ -177,7 +177,8 @@ class Session: else: self.start_as_guest() - frappe.local.lang = frappe.translate.get_user_lang(self.data.user) + if self.sid != "Guest": + frappe.local.lang = frappe.translate.get_user_lang(self.data.user) def get_session_record(self): """get session record, or return the standard Guest Record"""