Improve strings for translation
This commit is contained in:
@@ -161,8 +161,8 @@ class LatexRenderer(Thread):
|
|||||||
except Exception:
|
except Exception:
|
||||||
msg = 'Could not create temporary files for Latex plugin'
|
msg = 'Could not create temporary files for Latex plugin'
|
||||||
log.debug(msg)
|
log.debug(msg)
|
||||||
self.show_error(_('latex error: %s\n===ORIGINAL CODE====\n%s') % (
|
self.show_error(_('latex error: %(error)s\n===ORIGINAL CODE====\n'
|
||||||
msg, self.code[2:len(self.code)-2]))
|
'%(code)s') % {'error': msg, 'code': self.code[2:len(self.code)-2]})
|
||||||
return False
|
return False
|
||||||
|
|
||||||
tmpfile = os.path.join(tmpdir, 'gajim_tex')
|
tmpfile = os.path.join(tmpdir, 'gajim_tex')
|
||||||
|
|||||||
@@ -111,7 +111,8 @@ class FilterCommands(CommandContainer):
|
|||||||
def add_filter(self, search, replace):
|
def add_filter(self, search, replace):
|
||||||
plugin = app.plugin_manager.get_active_plugin('regex_filter')
|
plugin = app.plugin_manager.get_active_plugin('regex_filter')
|
||||||
plugin.add_rule(search, replace)
|
plugin.add_rule(search, replace)
|
||||||
return _('Added rule to replace %s by %s' % (search, replace))
|
return _('Added rule to replace %(search)s by %(replace)s' % {
|
||||||
|
'search': search, 'replace': replace})
|
||||||
|
|
||||||
@command("remove_filter", raw=True)
|
@command("remove_filter", raw=True)
|
||||||
@doc(_("Remove an incoming filter. Argument is the rule number. "
|
@doc(_("Remove an incoming filter. Argument is the rule number. "
|
||||||
|
|||||||
Reference in New Issue
Block a user