[FIX] http: setup_lang in Safari
Fine tuning of this commit: 5761b9a388
opw:716519
This commit is contained in:
parent
5761b9a388
commit
0b529cf3af
|
@ -1364,7 +1364,7 @@ class Root(object):
|
|||
if territory:
|
||||
lang = '%s_%s' % (code, territory)
|
||||
else:
|
||||
lang = babel.code.LOCALE_ALIASES[code]
|
||||
lang = babel.core.LOCALE_ALIASES[code]
|
||||
except (ValueError, KeyError):
|
||||
lang = 'en_US'
|
||||
httprequest.session.context["lang"] = lang
|
||||
|
|
Loading…
Reference in New Issue