Philipp Hörist pushed to branch master at gajim / gajim
Commits: a9994b79 by Philipp Hörist at 2019-01-19T18:41:52Z Windows: Fix language detection
- - - - -
1 changed file:
- gajim/common/i18n.py
Changes:
===================================== 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')
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/a9994b791b2ed17f551d031d9f842381543...