From 0bcd965bc5c7bb5f24f77bb1099ee667e36d7b9d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Philipp=20H=C3=B6rist?= <philipp@hoerist.com>
Date: Sun, 3 Jan 2021 14:50:28 +0100
Subject: [PATCH] Windows: Add Workaround for #10342

---
 gajim/common/i18n.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gajim/common/i18n.py b/gajim/common/i18n.py
index 091542e512..699057497e 100644
--- a/gajim/common/i18n.py
+++ b/gajim/common/i18n.py
@@ -172,6 +172,9 @@ def ngettext(s_sing, s_plural, n, replace_sing=None, replace_plural=None):
         # find the translation
         # Use LANGUAGE instead of LANG, LANG sets LC_ALL and thus
         # doesn't retain other region settings like LC_TIME
+
+        # See https://gitlab.gnome.org/GNOME/pygobject/-/issues/442
+        LANG = 'en'
         os.environ['LANGUAGE'] = LANG
 except Exception as error:
     print('Failed to determine default language', file=sys.stderr)
-- 
GitLab