mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-20 16:30:20 +00:00
[Util] Refactor reset language env vars
This commit is contained in:
parent
18fa028d2d
commit
af70ff1fdc
@ -66,9 +66,8 @@ def set_language(lang):
|
||||
:type lang: str
|
||||
"""
|
||||
if not lang:
|
||||
for lang_env_var in ['LANGUAGE', 'LANG']:
|
||||
if lang_env_var in os.environ:
|
||||
del os.environ[lang_env_var]
|
||||
os.environ.pop('LANGUAGE', None)
|
||||
os.environ.pop('LANG', None)
|
||||
return
|
||||
|
||||
# Necessary to set these environment variables for GtkBuilder
|
||||
|
Loading…
x
Reference in New Issue
Block a user