getdefaultlocale is depreciate
This commit is contained in:
parent
b8e343c31d
commit
369d11d6b2
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue