diff --git a/gajim/common/i18n.py b/gajim/common/i18n.py index 51009c3d6..5e81af36e 100644 --- a/gajim/common/i18n.py +++ b/gajim/common/i18n.py @@ -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')