summaryrefslogtreecommitdiff
path: root/src/multiuserchat.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-05-10 10:37:00 +0200
committermathieui <mathieui@mathieui.net>2015-05-11 22:31:12 +0200
commitdd98aa44a5084f0590645f5ee9565ab962e6c844 (patch)
tree8e16fbb20e969eadfea5ba2689e1de4539ffcf94 /src/multiuserchat.py
parent861f5c4bbd775b091362766ecafeb7d1955aab2f (diff)
downloadpoezio-dd98aa44a5084f0590645f5ee9565ab962e6c844.tar.gz
poezio-dd98aa44a5084f0590645f5ee9565ab962e6c844.tar.bz2
poezio-dd98aa44a5084f0590645f5ee9565ab962e6c844.tar.xz
poezio-dd98aa44a5084f0590645f5ee9565ab962e6c844.zip
Remove gettext support, as we don’t want to translate poezio, and it takes more than 1ms per call.
Diffstat (limited to 'src/multiuserchat.py')
-rw-r--r--src/multiuserchat.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/multiuserchat.py b/src/multiuserchat.py
index 92d09a60..80e2c706 100644
--- a/src/multiuserchat.py
+++ b/src/multiuserchat.py
@@ -11,7 +11,6 @@ Add some facilities that are not available on the XEP_0045
slix plugin
"""
-from gettext import gettext as _
from xml.etree import cElementTree as ET
from common import safeJID
@@ -43,10 +42,10 @@ def destroy_room(xmpp, room, reason='', altroom=''):
iq.append(query)
def callback(iq):
if not iq or iq['type'] == 'error':
- xmpp.core.information(_('Unable to destroy room %s') % room,
- _('Info'))
+ xmpp.core.information('Unable to destroy room %s' % room,
+ 'Info')
else:
- xmpp.core.information(_('Room %s destroyed') % room, _('Info'))
+ xmpp.core.information('Room %s destroyed' % room, 'Info')
iq.send(callback=callback)
return True