From 9cfe1dce206e479a4d0aef75566b5a107b20c572 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Sun, 30 Dec 2018 14:25:03 +0100 Subject: [PATCH] Fix #739 --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index 46707c78..f482d8ab 100644 --- a/cps/web.py +++ b/cps/web.py @@ -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)