From bb6167504c3554c6c94ad8594e020ee7cbac47d6 Mon Sep 17 00:00:00 2001 From: Emily Lamancusa Date: Mon, 10 Mar 2025 11:41:06 -0400 Subject: [PATCH] Bug 38842: (follow-up) Fix translatability Add t() calls to make text translatable Signed-off-by: Baptiste Wojtkowski Signed-off-by: Paul Derscheid --- .../prog/en/includes/html_helpers.inc | 2 +- .../prog/en/modules/circ/returns.tt | 38 +++++++++---------- 2 files changed, 20 insertions(+), 20 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 f53ba17075..17863d6b0b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc @@ -702,7 +702,7 @@ [% footer_has_content = 1 %] [% END %] [% IF !footer_has_content %] - + [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index dc9472c704..2598e4554a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -847,27 +847,27 @@ [% SET print_button = '' %] [% IF transfertodo %] - [% confirm_button_text = 'Confirm hold and transfer' %] - [% print_button = '' %] + [% confirm_button_text = t('Confirm hold and transfer') %] + [% print_button = '' %] [% ELSE %] - [% confirm_button_text = 'Confirm hold' %] - [% print_button = '' %] + [% confirm_button_text = t('Confirm hold') %] + [% print_button = '' %] [% END %] [% SET modal_print_url = reserve_id | uri %] [% modal_print_url = "/cgi-bin/koha/circ/hold-transfer-slip.pl?reserve_id=" _ modal_print_url %] - [% WRAPPER modal_wrapper modal_id="hold-found-modal" modal_header_contents='

Hold found

' modal_confirm_text=confirm_button_text modal_confirm_accesskey="Y" modal_custom_utility_button=print_button modal_deny_text="Ignore" modal_deny_accesskey="I" modal_deny_action="dismiss" %] + [% WRAPPER modal_wrapper modal_id="hold-found-modal" modal_header_contents='

' _ t('Hold found') _ '

' modal_confirm_text=confirm_button_text modal_confirm_accesskey="Y" modal_custom_utility_button=print_button modal_deny_text= t('Ignore') modal_deny_accesskey="I" modal_deny_action="dismiss" %]

[% title | html %]

[% IF ( reservenotes ) %] -

Notes:

+

[% t('Notes') | html %]:

[% reservenotes | html %]


[% END %] -

Hold for:

+

[% t('Hold for') | html %]:

  • [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_reserves" %] @@ -893,38 +893,38 @@ [% UNLESS ( transfertodo) %] [% INCLUDE display_bormessagepref %] [% IF patron.primary_contact_method %] -
  • Main contact method: +
  • + [% t('Main contact method') | html %]: [% SWITCH patron.primary_contact_method %] [% CASE 'phone' %] - Primary phone + [% t('Primary phone') | html %] [% CASE 'phonepro' %] - Secondary phone + [% t('Secondary phone') | html %] [% CASE 'mobile' %] - Other phone + [% t('Other phone') | html %] [% CASE 'email' %] - Primary email + [% t('Primary email') | html %] [% CASE 'emailpro' %] - Secondary email + [% t('Secondary email') | html %] [% CASE 'fax' %] - Fax + [% t('Fax') | html %] [% END %]
  • [% END %] [% END %] [% IF ( patron.is_debarred ) %] -
  • Patron is RESTRICTED
  • +
  • [% t('Patron is RESTRICTED') | html %]
  • [% END %] [% IF ( patron.gonenoaddress ) %] -
  • Patron's address is in doubt
  • +
  • [% t("Patron's address is in doubt") | html %]
  • [% END %]
[% IF ( transfertodo ) %] -

Transfer to: [% Branches.GetName( destbranch ) | html %]

+

[% t('Transfer to') | html %]: [% Branches.GetName( destbranch ) | html %]

[% ELSE %] -

Hold at [% Branches.GetName( destbranch ) | html %]

+

[% t('Hold at') | html %] [% Branches.GetName( destbranch ) | html %]

[% END %] [% PROCESS passthrough_data %] -- 2.39.5