[lang] [fix] german

This commit is contained in:
Rushabh Mehta 2013-07-09 10:20:31 +05:30
parent 42adcb85d8
commit a016f19bfe
2 changed files with 3 additions and 3 deletions

View file

@ -91,7 +91,7 @@ class HTTPRequest:
lang = lang.split(",")
else:
lang = [lang]
for l in lang:
code = l.strip()
if code in lang_list:

View file

@ -103,8 +103,8 @@ def load_translations(bootinfo):
return
user_lang_pref = webnotes.conn.get_value("Profile", webnotes.session.user, "language")
if user_lang_pref and (user_lang_pref in lang_names):
webnotes.lang = lang_names[user_lang_pref]
if user_lang_pref and (user_lang_pref.lower() in lang_names):
webnotes.lang = lang_names[user_lang_pref.lower()]
webnotes.user_lang = True
if webnotes.lang != 'en':