From 6a6272ace38a0b521c97d7b5a5eeeee38f5c9308 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 20 May 2024 11:19:47 +0100 Subject: [PATCH] Translate no records found message Signed-off-by: snipe --- resources/lang/en-US/table.php | 9 +++++---- resources/views/partials/bootstrap-table.blade.php | 3 +++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/resources/lang/en-US/table.php b/resources/lang/en-US/table.php index f7a49d86c1..16e32b148f 100644 --- a/resources/lang/en-US/table.php +++ b/resources/lang/en-US/table.php @@ -2,9 +2,10 @@ return array( - 'actions' => 'Actions', - 'action' => 'Action', - 'by' => 'By', - 'item' => 'Item', + 'actions' => 'Actions', + 'action' => 'Action', + 'by' => 'By', + 'item' => 'Item', + 'no_matching_records' => 'No matching records found', ); diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php index a3d6b6df2d..8b01ce7865 100644 --- a/resources/views/partials/bootstrap-table.blade.php +++ b/resources/views/partials/bootstrap-table.blade.php @@ -92,6 +92,9 @@ exportTypes: ['xlsx', 'excel', 'csv', 'pdf','json', 'xml', 'txt', 'sql', 'doc' ], onLoadSuccess: function () { $('[data-tooltip="true"]').tooltip(); // Needed to attach tooltips after ajax call + }, + formatNoMatches: function () { + return '{{ trans('table.no_matching_records') }}'; } });