From a4e2968918ef9c136584a09bcadf6fa30532b67a Mon Sep 17 00:00:00 2001 From: Bernardo Gonzalez Kriegel Date: Sat, 7 Mar 2015 14:16:13 -0300 Subject: [PATCH] Bug 13423: Untranslatable strings in serials-edit.tt and serials-recieve.tt Thid patch rewrites strings to make them translatable To test: 1) Apply the patch 2) Update translation for your language of choice 3) Check new strings on staff PO file +msgid "A barcode was not entered." +msgid "Do you want to put in a barcode" +msgid "Leave barcode blank?" +msgid "Note: unable to change this later" +msgid "or do you want to use a system generated barcode?" --- .../prog/en/modules/serials/serials-edit.tt | 4 ++-- .../prog/en/modules/serials/serials-recieve.tt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt index 3877715..0cc7382 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt @@ -28,7 +28,7 @@ function barcode_check(){ // alert(elembarcode+"\n"+eval(elembarcode+".value)); // alert(elemstatus+"\n"+eval(elemstatus+".value")); if(eval(elembarcode+".value") =='' && eval(elemstatus+".value") == 2){ - var answer = confirm("Leave barcode blank?\n - Note: unable to change this later"); + var answer = confirm(_("Leave barcode blank?")+"\n"+_("Note: unable to change this later")); if (answer){ document.f.submit(); } else { @@ -36,7 +36,7 @@ function barcode_check(){ } } if(eval(elembarcode+".value".indexOf('TEMP')) > 0 && eval(elemstatus+".value") == 2){ - var answer = confirm("A barcode was not entered.\nDo you want to put in a barcode\nor do you want to use a system generated barcode?"); + var answer = confirm(_("A barcode was not entered.")+"\n"+_("Do you want to put in a barcode")+"\n"+_("or do you want to use a system generated barcode?")); if (answer){ document.f.submit(); } else { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-recieve.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-recieve.tt index f93c8c7..d35efa1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-recieve.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-recieve.tt @@ -19,7 +19,7 @@ function barcode_check(){ // alert(elembarcode+"\n"+eval(elembarcode+".value)); // alert(elemstatus+"\n"+eval(elemstatus+".value")); if(eval(elembarcode+".value") =='' && eval(elemstatus+".value") == 2){ - var answer = confirm("Leave barcode blank?\n - Note: unable to change this later"); + var answer = confirm(_("Leave barcode blank?")+"\n"+_("Note: unable to change this later")); if (answer){ document.f.submit(); } else { @@ -27,7 +27,7 @@ function barcode_check(){ } } if(eval(elembarcode+".value".indexOf('TEMP')) > 0 && eval(elemstatus+".value") == 2){ - var answer = confirm("A barcode was not entered.\nDo you want to put in a barcode\nor do you want to use a system generated barcode?"); + var answer = confirm(_("A barcode was not entered.")+"\n"+_("Do you want to put in a barcode")+"\n"+_("or do you want to use a system generated barcode?")); if (answer){ document.f.submit(); } else { -- 1.7.9.5