From f5ac575cf71ec39ea035888ab869e8f04154bef0 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 16 Jan 2014 16:08:17 +0100 Subject: [PATCH] Bug 11488: make string "Are you sure you want to write off ..." translatable Test plan: - ./translate update LANG - translate the string into your po file - ./translate install LANG - Verify the string is translated. Signed-off-by: Owen Leonard Signed-off-by: Marcel de Rooy Signed-off-by: Galen Charlton --- koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt index 0ba9cf3461..e5845880d1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt @@ -16,7 +16,9 @@ function enableCheckboxActions(){ $(document).ready(function(){ $('#pay-fines-form').preventDoubleFormSubmit(); $("#woall").click(function(event){ - var answer = confirm(_("Are you sure you want to write off [% total | format('%.2f') %] in outstanding fines? This cannot be undone!")); + var msg = _("Are you sure you want to write off %s in outstanding fines? This cannot be undone!"); + msg = msg.replace( "%s", "[% total | format('%.2f') %]" ); + var answer = confirm(msg); if (!answer){ event.preventDefault(); } -- 2.39.5