Improve strings for translation

This commit is contained in:
Yann Leboulanger
2017-09-20 11:16:44 +02:00
parent 540a312e14
commit 6f2442f6b8
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -111,7 +111,8 @@ class FilterCommands(CommandContainer):
def add_filter(self, search, replace):
plugin = app.plugin_manager.get_active_plugin('regex_filter')
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)
@doc(_("Remove an incoming filter. Argument is the rule number. "