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

Windows: Dont override format region settings

parent 06782727
No related branches found
No related tags found
No related merge requests found
......@@ -170,7 +170,9 @@ def ngettext(s_sing, s_plural, n, replace_sing=None, replace_plural=None):
if os.name == 'nt':
# Set the env var on Windows because gettext.find() uses it to
# find the translation
os.environ['LANG'] = LANG
# Use LANGUAGE instead of LANG, LANG sets LC_ALL and thus
# doesn't retain other region settings like LC_TIME
os.environ['LANGUAGE'] = LANG
except Exception as error:
print('Failed to determine default language', file=sys.stderr)
import traceback
......
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