[Git][gajim/gajim][master] Windows: Fix language detection

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


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/a9994b791b2ed17f551d031d9f842381543ac4f7

-- 
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/a9994b791b2ed17f551d031d9f842381543ac4f7
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/ab55c288/attachment.html>


More information about the Commits mailing list