diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/connection.py | 3 |
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 |