fix handling of country specific locales
This commit is contained in:
parent
f51a9b06db
commit
414a599881
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ class BaseController(WSGIController):
|
|||
# set language environment
|
||||
for lang in request.languages:
|
||||
try:
|
||||
add_fallback(lang)
|
||||
add_fallback(lang.replace('-', '_'))
|
||||
except:
|
||||
pass
|
||||
c.messages = {'errors': [], 'messages': []}
|
||||
|
|
Loading…
Reference in a new issue