Skip to content
Snippets Groups Projects
Commit 14fb0857 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Windows: Fix language detection

parent 8c0776e5
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment