From 7477d6b04952624a4cf9d9bcbeb9e929f540e6da 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." --- .../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 0f767e39400..894ba40bd35 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.25.1