Could you try this patch ? I tested it here and it seems to work properly. Could you confirm ?
Yann
Index: common/xmpp/client_nb.py =================================================================== --- common/xmpp/client_nb.py (revision 6381) +++ common/xmpp/client_nb.py (working copy) @@ -48,6 +48,7 @@ self.disconnect_handlers = [] self.Server = server self.Port = port + self.Lang = None # Who initiated this client # Used to register the EventDispatcher Index: common/xmpp/dispatcher_nb.py =================================================================== --- common/xmpp/dispatcher_nb.py (revision 6381) +++ common/xmpp/dispatcher_nb.py (working copy) @@ -109,6 +109,8 @@ self._metastream.setAttr('version', '1.0') self._metastream.setAttr('xmlns:stream', NS_STREAMS) self._metastream.setAttr('to', self._owner.Server) + if self._owner.Lang: + self._metastream.setAttr('xml:lang', self._owner.Lang) self._owner.send("<?xml version='1.0'?>%s>" % str(self._metastream)[:-2]) def _check_stream_start(self, ns, tag, attrs): Index: common/connection.py =================================================================== --- common/connection.py (revision 6381) +++ common/connection.py (working copy) @@ -333,6 +343,7 @@ # increase default timeout for server responses common.xmpp.dispatcher_nb.DEFAULT_TIMEOUT_SECONDS = self.try_connecting_for_foo_secs con.set_idlequeue(gajim.idlequeue) + con.Lang = gajim.LANG host = self.select_next_host(self._hosts) self._current_host = host self._hosts.remove(host)
_______________________________________________ Gajim-devel mailing list Gajim-devel@gajim.org https://lists.gajim.org/cgi-bin/listinfo/gajim-devel