Commit 3b130db6 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Simplify set_i18n_env()

We already determine LANG in initialize_lang()

getdefaultlocale() takes env var LANG into consideration
parent 03aa1db3
......@@ -54,14 +54,7 @@ def initialize():
def set_i18n_env():
if == 'nt':
lang = os.getenv('LANG')
if lang is None:
default_lang = locale.getdefaultlocale()[0]
if default_lang:
lang = default_lang
if lang:
os.environ['LANG'] = lang
os.environ['LANG'] = LANG
def initialize_lang():
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment