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/tabs/adhoc_commands_list.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/tabs/adhoc_commands_list.py')
-rw-r--r-- | src/tabs/adhoc_commands_list.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tabs/adhoc_commands_list.py b/src/tabs/adhoc_commands_list.py index 7f5abf6a..10ebf22b 100644 --- a/src/tabs/adhoc_commands_list.py +++ b/src/tabs/adhoc_commands_list.py @@ -4,8 +4,6 @@ select one of them and start executing it, or just close the tab and do nothing. """ -from gettext import gettext as _ - import logging log = logging.getLogger(__name__) @@ -20,7 +18,7 @@ class AdhocCommandsListTab(ListTab): def __init__(self, jid): ListTab.__init__(self, jid.full, "“Enter”: execute selected command.", - _('Ad-hoc commands of JID %s (Loading)') % jid, + 'Ad-hoc commands of JID %s (Loading)' % jid, (('Node', 0), ('Description', 1))) self.key_func['^M'] = self.execute_selected_command @@ -50,7 +48,7 @@ class AdhocCommandsListTab(ListTab): yield item items = [(item['node'], item['name'] or '', item['jid']) for item in get_items()] self.listview.set_lines(items) - self.info_header.message = _('Ad-hoc commands of JID %s') % self.name + self.info_header.message = 'Ad-hoc commands of JID %s' % self.name if self.core.current_tab() is self: self.refresh() else: |