forked from jan/debianmemberportfolio
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
|
# set language environment
|
||||||
for lang in request.languages:
|
for lang in request.languages:
|
||||||
try:
|
try:
|
||||||
add_fallback(lang)
|
add_fallback(lang.replace('-', '_'))
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
c.messages = {'errors': [], 'messages': []}
|
c.messages = {'errors': [], 'messages': []}
|
||||||
|
|
Loading…
Reference in a new issue