[lang] [fix] german
This commit is contained in:
parent
42adcb85d8
commit
a016f19bfe
2 changed files with 3 additions and 3 deletions
|
|
@ -91,7 +91,7 @@ class HTTPRequest:
|
|||
lang = lang.split(",")
|
||||
else:
|
||||
lang = [lang]
|
||||
|
||||
|
||||
for l in lang:
|
||||
code = l.strip()
|
||||
if code in lang_list:
|
||||
|
|
|
|||
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue