Bug 11488: make string "Are you sure you want to write off ..." translatable
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 16 Jan 2014 15:08:17 +0000 (16:08 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 31 Jan 2014 15:51:12 +0000 (15:51 +0000)
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 <oleonard@myacpl.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt

index 0ba9cf3..e584588 100644 (file)
@@ -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();
                 }