From 4bc4a127aaa99b9d10f4ea488584fcf1e14fa820 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 29 Nov 2021 07:59:47 -0300 Subject: [PATCH] Bug 29585: Fix unstranslatable strings in addbiblio.tt This patch makes 'Go to field' and 'Errors' strings translatable Signed-off-by: Tomas Cohen Arazi Signed-off-by: Katrin Fischer Signed-off-by: Fridolin Somers --- .../prog/en/modules/cataloguing/addbiblio.tt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt index fb1652e859..5325d6e91f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt @@ -608,7 +608,7 @@ function PopupMARCFieldDoc(field) { if (tabflag[tagsubfieldid][0]==0){ var tag=tagsubfieldid.substr(0,3); var subfield=tagsubfieldid.substr(3,1); - StrAlert += "
  • "+_("Tag %s subfield %s %s in tab %s").format(tag, subfield, formatFieldName( tabflag[tagsubfieldid][1] ), tabflag[tagsubfieldid][2]) + ' Go to field
  • '; + StrAlert += "
  • "+_("Tag %s subfield %s %s in tab %s").format(tag, subfield, formatFieldName( tabflag[tagsubfieldid][1] ), tabflag[tagsubfieldid][2]) + ' ' + _("Go to field") + '
  • '; flag=1; } } @@ -686,16 +686,16 @@ function PopupMARCFieldDoc(field) { StrAlert += "
      "; for( var prop in mandatoryFields ){ if( mandatoryFields[prop]["importance"] == "mandatory" ){ - StrAlert += "
    • " + _("Field %s is mandatory, at least one of its subfields must be filled.").format( prop ) + ' Go to field
    • '; + StrAlert += "
    • " + _("Field %s is mandatory, at least one of its subfields must be filled.").format( prop ) + ' ' + _("Go to field") + '
    • '; } else { - StrAlert += "
    • " + _("Field %s is important, at least one of its subfields must be filled.").format(arr[0]) + ' Go to field
    • '; + StrAlert += "
    • " + _("Field %s is important, at least one of its subfields must be filled.").format(arr[0]) + ' ' + _("Go to field") + '
    • '; } } StrAlert += "
    "; } StrAlert += ""; - if(flag){ - $("#show-errors").html('