fix i18n
This commit is contained in:
parent
9cf30d214d
commit
22f0aab0a8
@ -17,6 +17,7 @@ LOCALE_DIR = os.path.join(APP_DIR, 'locale')
|
||||
DEFAULT_LANG = os.environ.get('LANG', '').split(':')
|
||||
DEFAULT_LANG += ['en_US']
|
||||
|
||||
languages = []
|
||||
lc, encoding = locale.getdefaultlocale()
|
||||
if lc:
|
||||
languages = [lc]
|
||||
|
Loading…
Reference in New Issue
Block a user