From 8cf805387b3e1855be925f08f8493b6e068181d1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 5 Apr 2024 16:19:40 +0200 Subject: [PATCH] Bug 33568: Fix translatability issues --- .../tables/items/catalogue_detail.inc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 3afd9293a26..4ce28881209 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 @@ -325,8 +325,8 @@ node += '
'; row.cover_image_ids.forEach(id => { node += ''; }); @@ -690,7 +690,7 @@ orderable: false, render: function (data, type, row, meta) { if (row.analytics_count == 0) return "" - return '%s analytics'.format(row.item_id, row.analytics_count); + return '%s'.format(row.item_id, _("%s analytics").format(row.analytics_count)); } }, { @@ -698,7 +698,7 @@ searchable: false, orderable: false, render: function (data, type, row, meta) { - return 'Create analytics'.format(row.biblio_id, row.item_id); + return '%s'.format(row.biblio_id, row.item_id, _("Create analytics")); } }, [% END %] @@ -745,17 +745,17 @@ if ( can_edit_items_from[row.holding_library_id] ){ [% IF Koha.Preference('LocalCoverImages') OR Koha.Preference('OPACLocalCoverImages') %] nodes += '
'; - nodes += ' Edit'.format(row.biblio_id, row.item_id); + nodes += ' %s'.format(row.biblio_id, row.item_id, _("Edit")); nodes += ' '; nodes += '
'; [% ELSE %] - nodes += ' Edit'.format(row.biblio_id, row.item_id); + nodes += ' %s'.format(row.biblio_id, row.item_id, _("Edit")); [% END %] } [% IF bundlesEnabled %] - nodes += ''.format(escape_str(row.bundle_items_not_lost_count), escape_str(row.bundle_items_lost_count)); + nodes += ''.format(_("Manage bundle (%s|%s)").format(row.bundle_items_not_lost_count, row.bundle_items_lost_count)); [% END %] return nodes; -- 2.34.1