mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-05 03:47:57 +03:00
[Util] Refactor reset language env vars
This commit is contained in:
parent
18fa028d2d
commit
af70ff1fdc
1 changed files with 2 additions and 3 deletions
|
@ -66,9 +66,8 @@ def set_language(lang):
|
||||||
:type lang: str
|
:type lang: str
|
||||||
"""
|
"""
|
||||||
if not lang:
|
if not lang:
|
||||||
for lang_env_var in ['LANGUAGE', 'LANG']:
|
os.environ.pop('LANGUAGE', None)
|
||||||
if lang_env_var in os.environ:
|
os.environ.pop('LANG', None)
|
||||||
del os.environ[lang_env_var]
|
|
||||||
return
|
return
|
||||||
|
|
||||||
# Necessary to set these environment variables for GtkBuilder
|
# Necessary to set these environment variables for GtkBuilder
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue