From 6940ec0be708bd48a7415200b0cc63f3f54b7174 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Thu, 6 Nov 2025 14:51:30 +0000 Subject: [PATCH] Bug 34198: Use Koha::I18N as workaround to a bug in template translator When the template translator find a string to replace in an attribute (in this case, title) it rewrites the whole tag. And when the tag contain TT syntax, the result is really bad, for instance: By having the attribute value translated by Koha::I18N we avoid that problem. --- koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc index 864978e0b5b..86242f89fc8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc @@ -97,6 +97,7 @@ [% BLOCK subfields_for_item %] [% USE HTML %] + [% USE I18N %]
    [% FOREACH subfield IN subfields %] [% IF subfield.kohafield == 'items.more_subfields_xml' %] @@ -145,9 +146,9 @@ [% ELSE %] [% IF subfield.IS_LOST_AV && Koha.Preference("ClaimReturnedLostValue") && aval == Koha.Preference("ClaimReturnedLostValue") %] - + [% ELSIF subfield.IS_LOST_AV && Koha.Preference("BundleLostValue") && aval == Koha.Preference("BundleLostValue") %] - + [% ELSE %] [% END %] -- 2.39.5