diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-05-10 10:37:00 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-05-11 22:31:12 +0200 |
commit | dd98aa44a5084f0590645f5ee9565ab962e6c844 (patch) | |
tree | 8e16fbb20e969eadfea5ba2689e1de4539ffcf94 /src/bookmarks.py | |
parent | 861f5c4bbd775b091362766ecafeb7d1955aab2f (diff) | |
download | poezio-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/bookmarks.py')
-rw-r--r-- | src/bookmarks.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bookmarks.py b/src/bookmarks.py index 9a875217..c7d26a51 100644 --- a/src/bookmarks.py +++ b/src/bookmarks.py @@ -30,7 +30,6 @@ Adding a remote bookmark: import functools import logging -from gettext import gettext as _ from slixmpp.plugins.xep_0048 import Bookmarks, Conference, URL from slixmpp import JID @@ -245,7 +244,7 @@ class BookmarkList(object): """Add the remotely stored bookmarks to the list.""" force = config.get('force_remote_bookmarks') if xmpp.anon or not (any(self.available_storage.values()) or force): - information(_('No remote bookmark storage available'), 'Warning') + information('No remote bookmark storage available', 'Warning') return if force and not any(self.available_storage.values()): @@ -256,7 +255,7 @@ class BookmarkList(object): self.available_storage[method] = True old_callback(result) else: - information(_('No remote bookmark storage available'), 'Warning') + information('No remote bookmark storage available', 'Warning') callback = new_callback if self.preferred == 'pep': |