diff options
author | Yann Leboulanger <yann@leboulanger.org> | 2017-09-20 12:16:44 +0300 |
---|---|---|
committer | Yann Leboulanger <yann@leboulanger.org> | 2017-09-20 12:16:44 +0300 |
commit | 6f2442f6b805fedbad2e0a80071c73872c089822 (patch) | |
tree | c961e9b29f917b081dc2340c64d5c24f13b74bad /regex_filter | |
parent | 540a312e14d19ccb1a549a0cf268f5cf2495d866 (diff) |
Improve strings for translation
Diffstat (limited to 'regex_filter')
-rw-r--r-- | regex_filter/regex_filter.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/regex_filter/regex_filter.py b/regex_filter/regex_filter.py index e86aa04..6c53f6c 100644 --- a/regex_filter/regex_filter.py +++ b/regex_filter/regex_filter.py @@ -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. " |