Commit 2a8c0da3 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Use i18n module to determine locale

parent 40aa3d80
......@@ -71,6 +71,7 @@
from gajim.common import gpg
from gajim.common import passwords
from gajim.common import check_X509
from gajim.common import i18n
from gajim.common.connection_handlers import *
from gajim.common.contacts import GC_Contact
from gajim.gtkgui_helpers import get_action
......@@ -620,9 +621,6 @@ def __init__(self, name):
CommonConnection.__init__(self, name)
self.lang = None
if locale.getdefaultlocale()[0]:
self.lang = locale.getdefaultlocale()[0].split('_')[0]
# increase/decrease default timeout for server responses
self.try_connecting_for_foo_secs = 45
# holds the actual hostname to which we are connected
......@@ -1520,8 +1518,7 @@ def __on_auth(self, con, auth):
# END connect
def add_lang(self, stanza):
if self.lang:
stanza.setAttr('xml:lang', self.lang)
stanza.setAttr('xml:lang', i18n.LANG)
def get_privacy_lists(self):
if not app.account_is_connected(
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