Bug 37047: (QA follow-up) Fix translations

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit cfc47e746f)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Martin Renvoize 2024-06-21 14:07:07 +01:00 committed by Lucas Gass
parent f889259269
commit 1394d31d15
1 changed files with 8 additions and 8 deletions

View File

@ -16,11 +16,11 @@ $(document).ready(function () {
columns: [ columns: [
{ {
data: "booking_id", data: "booking_id",
title: _("Booking ID"), title: __("Booking ID"),
}, },
{ {
data: "biblio.title", data: "biblio.title",
title: _("Title"), title: __("Title"),
searchable: true, searchable: true,
orderable: true, orderable: true,
render: function (data, type, row, meta) { render: function (data, type, row, meta) {
@ -31,10 +31,10 @@ $(document).ready(function () {
}, },
{ {
data: "item.external_id", data: "item.external_id",
title: _("Item"), title: __("Item"),
searchable: true, searchable: true,
orderable: true, orderable: true,
defaultContent: _("Any item"), defaultContent: __("Any item"),
render: function (data, type, row, meta) { render: function (data, type, row, meta) {
if (row.item) { if (row.item) {
return ( return (
@ -50,7 +50,7 @@ $(document).ready(function () {
}, },
{ {
data: "start_date", data: "start_date",
title: _("Start date"), title: __("Start date"),
searchable: true, searchable: true,
orderable: true, orderable: true,
render: function (data, type, row, meta) { render: function (data, type, row, meta) {
@ -59,7 +59,7 @@ $(document).ready(function () {
}, },
{ {
data: "end_date", data: "end_date",
title: _("End date"), title: __("End date"),
searchable: true, searchable: true,
orderable: true, orderable: true,
render: function (data, type, row, meta) { render: function (data, type, row, meta) {
@ -68,7 +68,7 @@ $(document).ready(function () {
}, },
{ {
data: "", data: "",
title: _("Actions"), title: __("Actions"),
class: "actions", class: "actions",
searchable: false, searchable: false,
orderable: false, orderable: false,
@ -79,7 +79,7 @@ $(document).ready(function () {
'<button type="button" class="btn btn-default btn-xs cancel-action" data-toggle="modal" data-target="#cancelBookingModal" data-booking="' + '<button type="button" class="btn btn-default btn-xs cancel-action" data-toggle="modal" data-target="#cancelBookingModal" data-booking="' +
row.booking_id + row.booking_id +
'"><i class="fa fa-trash" aria-hidden="true"></i> ' + '"><i class="fa fa-trash" aria-hidden="true"></i> ' +
_("Cancel") + __("Cancel") +
"</button>"; "</button>";
} }
return result; return result;