Philipp Hörist pushed to branch gajim_1.1 at gajim / gajim
Commits:
14fb0857 by Philipp Hörist at 2019-01-19T18:58:15Z
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/14fb0857665e353f4a2155c5c4807c2a77c17785
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/14fb0857665e353f4a2155c5c4807c2a77c17785
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits