[FIX] http: setup_lang in Safari

Fine tuning of this commit: 5761b9a388

opw:716519
This commit is contained in:
Goffin Simon 2017-03-22 17:03:23 +01:00
parent 5761b9a388
commit 0b529cf3af
2 changed files with 1 additions and 1 deletions

0
demo_10.sql Normal file
View File

View File

@ -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