Pass xml:lang to nbxmpp
This commit is contained in:
parent
84b2392fcc
commit
4f3e4d2242
2 changed files with 5 additions and 3 deletions
|
@ -60,8 +60,9 @@ from gajim.common import passwords
|
||||||
from gajim.common import idle
|
from gajim.common import idle
|
||||||
from gajim.common import modules
|
from gajim.common import modules
|
||||||
from gajim.common import ged
|
from gajim.common import ged
|
||||||
from gajim.common.nec import NetworkEvent
|
from gajim.common import i18n
|
||||||
from gajim.common.i18n import _
|
from gajim.common.i18n import _
|
||||||
|
from gajim.common.nec import NetworkEvent
|
||||||
from gajim.common.contacts import GC_Contact
|
from gajim.common.contacts import GC_Contact
|
||||||
from gajim.common.connection_handlers import ConnectionHandlers
|
from gajim.common.connection_handlers import ConnectionHandlers
|
||||||
from gajim.common.connection_handlers_events import OurShowEvent
|
from gajim.common.connection_handlers_events import OurShowEvent
|
||||||
|
@ -1061,7 +1062,8 @@ class Connection(CommonConnection, ConnectionHandlers):
|
||||||
con = nbxmpp.NonBlockingClient(
|
con = nbxmpp.NonBlockingClient(
|
||||||
domain=self._hostname,
|
domain=self._hostname,
|
||||||
caller=self,
|
caller=self,
|
||||||
idlequeue=app.idlequeue)
|
idlequeue=app.idlequeue,
|
||||||
|
lang=i18n.LANG)
|
||||||
|
|
||||||
if self._sm_resume_data:
|
if self._sm_resume_data:
|
||||||
con.set_resume_data(self._sm_resume_data)
|
con.set_resume_data(self._sm_resume_data)
|
||||||
|
|
|
@ -443,7 +443,7 @@ class MUC:
|
||||||
return
|
return
|
||||||
|
|
||||||
self._con.connection.get_module('MUC').request_config(
|
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):
|
def _config_received(self, result):
|
||||||
if result.is_error:
|
if result.is_error:
|
||||||
|
|
Loading…
Add table
Reference in a new issue