fix handling of country specific locales

This commit is contained in:
Jan Dittberner 2012-06-19 20:17:05 +02:00
parent f51a9b06db
commit 414a599881

View file

@ -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': []}