Module: check_mk
Branch: master
Commit: 20c92f54f5de2d89382289a68cd10ee5bbb8c850
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=20c92f54f5de2d…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Jun 7 11:57:27 2012 +0200
Improve l10nability of command confirmation
---
web/htdocs/views.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 5c33613..6d92593 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -2088,8 +2088,8 @@ def do_actions(view, what, action_rows, backurl):
command = None
title, executor = core_command(what, action_rows[0])[1:3] # just get the title and
executor
- if not html.confirm(_("Do you really want to %s the following %d %ss?") %
- (title, len(action_rows), what)):
+ if not html.confirm(_("Do you really want to %(title)s the following %(count)d
%(what)s?") %
+ { "title" : title, "count" : len(action_rows),
"what" : _(what + "s"), }):
return False
count = 0