Commit 9cfe1dce authored by Ozzieisaacs's avatar Ozzieisaacs

Fix #739

parent cb0f3cd0
......@@ -194,7 +194,7 @@ def get_locale():
if user.nickname != 'Guest': # if the account is the guest account bypass the config lang settings
return user.locale
translations = [str(item) for item in babel.list_translations()] + ['en']
preferred = [str(LC.parse(x.replace('-','_'))) for x in request.accept_languages.values()]
preferred = [str(LC.parse(x.replace('-','_').replace('*','en'))) for x in request.accept_languages.values()]
return negotiate_locale(preferred, translations)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment