Commit 4f3e4d22 authored by Philipp Hörist's avatar Philipp Hörist

Pass xml:lang to nbxmpp

parent 84b2392f
......@@ -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)
......
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment