From 4f3e4d2242b86f52535fee17884d629b785f6bf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Mon, 7 Jan 2019 23:44:51 +0100 Subject: [PATCH] Pass xml:lang to nbxmpp --- gajim/common/connection.py | 6 ++++-- gajim/common/modules/muc.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gajim/common/connection.py b/gajim/common/connection.py index 99f8c1de6..9ed4dd03a 100644 --- a/gajim/common/connection.py +++ b/gajim/common/connection.py @@ -60,8 +60,9 @@ from gajim.common import passwords from gajim.common import idle from gajim.common import modules from gajim.common import ged -from gajim.common.nec import NetworkEvent +from gajim.common import i18n from gajim.common.i18n import _ +from gajim.common.nec import NetworkEvent from gajim.common.contacts import GC_Contact from gajim.common.connection_handlers import ConnectionHandlers from gajim.common.connection_handlers_events import OurShowEvent @@ -1061,7 +1062,8 @@ class Connection(CommonConnection, ConnectionHandlers): con = nbxmpp.NonBlockingClient( domain=self._hostname, caller=self, - idlequeue=app.idlequeue) + idlequeue=app.idlequeue, + lang=i18n.LANG) if self._sm_resume_data: con.set_resume_data(self._sm_resume_data) diff --git a/gajim/common/modules/muc.py b/gajim/common/modules/muc.py index b02a44a8a..b4df57671 100644 --- a/gajim/common/modules/muc.py +++ b/gajim/common/modules/muc.py @@ -443,7 +443,7 @@ class MUC: return self._con.connection.get_module('MUC').request_config( - room_jid, i18n.LANG, callback=self._config_received) + room_jid, callback=self._config_received) def _config_received(self, result): if result.is_error: