getdefaultlocale is depreciate

This commit is contained in:
egarette@silique.fr 2023-01-07 16:33:34 +01:00
parent b8e343c31d
commit 369d11d6b2

View file

@ -43,7 +43,7 @@ DEFAULT_LANG = os.environ.get('LANG', '').split(':')
DEFAULT_LANG += ['en_US']
languages = []
lc, encoding = locale.getdefaultlocale()
lc, encoding = locale.getlocale()
if lc:
languages = [lc]