summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-12-31 14:00:09 +0100
committermathieui <mathieui@mathieui.net>2012-12-31 14:00:09 +0100
commita1607c4c6efbc1e0bdcb6ab5f7d6a1a15f9ca18d (patch)
tree6b44b9569c232b75f326cedc423e2f6191b61e1a /src
parentd15c4e0b589a021fcffbd11a329f1ecb88bd27f0 (diff)
downloadpoezio-a1607c4c6efbc1e0bdcb6ab5f7d6a1a15f9ca18d.tar.gz
poezio-a1607c4c6efbc1e0bdcb6ab5f7d6a1a15f9ca18d.tar.bz2
poezio-a1607c4c6efbc1e0bdcb6ab5f7d6a1a15f9ca18d.tar.xz
poezio-a1607c4c6efbc1e0bdcb6ab5f7d6a1a15f9ca18d.zip
Fix #2082 (xml:lang)
This is now already done in sleekxmpp, so I added a “lang” configuration option. TODO: use the locale of the system.
Diffstat (limited to 'src')
-rw-r--r--src/connection.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/connection.py b/src/connection.py
index a960e45c..16fb798d 100644
--- a/src/connection.py
+++ b/src/connection.py
@@ -46,7 +46,8 @@ class Connection(sleekxmpp.ClientXMPP):
jid = '%s/%s' % (jid, resource)
password = None
jid = safeJID(jid)
- sleekxmpp.ClientXMPP.__init__(self, jid, password)
+ # TODO: use the system language
+ sleekxmpp.ClientXMPP.__init__(self, jid, password, lang=config.get('lang', 'en'))
self.core = None
self.auto_reconnect = True if config.get('auto_reconnect', 'false').lower() in ('true', '1') else False
self.reconnect_max_attempts = 0