Commit a9994b79 authored by Philipp Hörist's avatar Philipp Hörist

Windows: Fix language detection

parent 72be14a0
Pipeline #2978 passed with stages
in 5 minutes and 2 seconds
......@@ -155,6 +155,10 @@ except locale.Error as error:
try:
LANG = get_default_lang()
if os.name == 'nt':
# Set the env var on Windows because gettext.find() uses it to
# find the translation
os.environ['LANG'] = LANG
print('Found default language: %s' % LANG)
except Exception as error:
print('Failed to determine default language')
......
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