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 <david@davidnind.com>
Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit be9efe452d)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
Jonathan Druart 2026-04-13 12:36:02 +02:00 committed by Jacob O'Mara
parent 75607c3f6b
commit 369acd42e2
No known key found for this signature in database
1 changed files with 4 additions and 1 deletions

View File

@ -821,7 +821,10 @@
searchable: false,
orderable: false,
render: function (data, type, row, meta) {
return '<a class="btn btn-default btn-xs print-label" href="/cgi-bin/koha/labels/spinelabel-print.pl?barcode=%s"><i class="fa fa-print"></i> Print label</a>'.format(escape_str(row.external_id));
return '<a class="btn btn-default btn-xs print-label" href="/cgi-bin/koha/labels/spinelabel-print.pl?barcode=%s"><i class="fa fa-print"></i> %s</a>'.format(
escape_str(row.external_id),
escape_str(_("Print label"))
);
}
},
[% END %]