From f59f58620ba4ec02166367345e1dbe35f449993a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 30 Nov 2021 14:10:58 +0100 Subject: [PATCH] Bug 29589: MARCOverlayRules - fix translatability issue Strings must not contain html tags, we should use KohaSpan instead. Test plan: Apply the patch, update translation for a given language, edit XX-YY-staff-prog.po Notice that the string is now "The %s preference is not set, don't forget to enable it for rules to take effect." Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Fridolin Somers Signed-off-by: Kyle M Hall --- .../intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt index 0f767e3940..894ba40bd3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt @@ -2,6 +2,7 @@ [% USE Asset %] [% SET footerjs = 1 %] [% USE Koha %] +[% USE KohaSpan %] [% INCLUDE 'doc-head-open.inc' %] MARC overlay rules › Koha › Administration [% INCLUDE 'doc-head-close.inc' %] @@ -53,8 +54,9 @@ [% END %] [% UNLESS Koha.Preference( 'MARCOverlayRules' ) %] + [% SET pref_MARCOverlayRules_link = 'MARCOverlayRules' %]
- The MARCOverlayRules preference is not set, don't forget to enable it for rules to take effect. + The [% pref_MARCOverlayRules_link | $KohaSpan %] preference is not set, don't forget to enable it for rules to take effect.
[% END %] [% IF removeConfirm %] -- 2.39.5