From 79da8902bd0926dd014cda32be0b1704a7db44cb Mon Sep 17 00:00:00 2001 From: cdhigh Date: Sat, 6 Jul 2024 14:08:21 -0300 Subject: [PATCH] Update settings.py --- application/view/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/view/settings.py b/application/view/settings.py index b3b43bac..7a5671af 100644 --- a/application/view/settings.py +++ b/application/view/settings.py @@ -202,7 +202,7 @@ def get_locale(): langCode = session.get('langCode') or request.accept_languages.best_match(supported_languages) except: #Working outside of request context langCode = 'en' - return langCode or '' + return langCode or 'en' #各种语言的语种代码和文字描述的对应关系 def LangMap():