From 2db1ab3ef77b6d76e1172ac44fef5913e088a3e3 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 15 Nov 2023 09:27:28 +0000 Subject: [PATCH] Bug 30070: (follow-up) Ensure strings are translatable Some strings moved from inline in templates to embedded in JS so we need to wrap them in _() now. Signed-off-by: Ray Delahunty Signed-off-by: Kyle M Hall Signed-off-by: Katrin Fischer --- .../prog/en/modules/acqui/edifactmsgs.tt | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/edifactmsgs.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/edifactmsgs.tt index 6166f90fcd..44d8a0a9e3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/edifactmsgs.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/edifactmsgs.tt @@ -86,13 +86,13 @@ "columns": [ { "data": "type", - "title": "Type", + "title": _("Type"), "searchable": true, "orderable": true }, { "data": "transfer_date", - "title": "Transferred", + "title": _("Transferred"), "searchable": true, "orderable": true, "render": function(data, type, row, meta) { @@ -101,13 +101,13 @@ }, { "data": "status", - "title": "Status", + "title": _("Status"), "searchable": true, "orderable": true }, { "data": "vendor.name", - "title": "Vendor", + "title": _("Vendor"), "searchable": true, "orderable": true, "render": function(data, type, row, meta) { @@ -121,37 +121,37 @@ } }, { - "title": "Details", + "title": _("Details"), "searchable": false, "orderable": false, "render": function(data, type, row, meta) { let rendered = ''; if ( row.type == 'QUOTE' || row.type == 'ORDERS' ) { if ( row.basket_id ) { - rendered = 'Basket: '+row.basket_id+''; + rendered = ''+_("Basket")+': '+row.basket_id+''; } } else { - rendered = 'Invoices'; + rendered = ''+_("Invoices")+''; } return rendered; } }, { "data": "filename", - "title": "Filename", + "title": _("Filename"), "searchable": true, "orderable": true }, { - "title": "Actions", + "title": _("Actions"), "className": "actions", "searchable": false, "orderable": false, "render": function(data, type, row, meta) { - var result = ' View message '; - result += ' Delete '; + var result = ' '+_("View message")+' '; + result += ' '+_("Delete")+' '; if ( row.status == 'new' ) { - result += ' Import '; + result += ' '+_("Import")+' '; } return result; } -- 2.39.5