[Git][gajim/gajim][gajim_1.1] Windows: Fix language detection

Philipp Hörist gitlab at dev.gajim.org
Sat Jan 19 19:58:23 CET 2019


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gajim.org/pipermail/commits/attachments/20190119/9fca70e7/attachment-0001.html>


More information about the Commits mailing list