From 369acd42e2e49d8f0eaaf3c4c3b90378b2ef8e37 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 13 Apr 2026 12:36:02 +0200 Subject: [PATCH] Bug 42341: Fix translatability of 'Print label' on staff detail page To test: - Activate SpineLabelShowPrintOnBibDetails - Install any translation. For ktd: sudo koha-translate --install de-DE --dev kohadev - Activate translation with StaffInterfaceLanguages - Find a bibliographic record with items and callnumbers in staff - Verify the "Print label" is translated when switching between languages Signed-off-by: David Nind Signed-off-by: Brendan Lawlor Signed-off-by: Lucas Gass (cherry picked from commit be9efe452dd4563e81c698a36510735a9ed5aee1) Signed-off-by: Jacob O'Mara --- .../includes/html_helpers/tables/items/catalogue_detail.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc index 9a1a3eaf65..adf8763bb2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc @@ -821,7 +821,10 @@ searchable: false, orderable: false, render: function (data, type, row, meta) { - return ' Print label'.format(escape_str(row.external_id)); + return ' %s'.format( + escape_str(row.external_id), + escape_str(_("Print label")) + ); } }, [% END %]