From 771c85e347466eafc2327a80b4e1ff5f77e101e6 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 20 May 2024 11:19:31 +0100 Subject: [PATCH 1/3] Translated account save message Signed-off-by: snipe --- app/Http/Controllers/ProfileController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index 2e81facc76..c505018e64 100755 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -72,7 +72,7 @@ class ProfileController extends Controller if ($user->save()) { - return redirect()->route('profile')->with('success', 'Account successfully updated'); + return redirect()->route('profile')->with('success', trans('account.general.profile_updated')); } return redirect()->back()->withInput()->withErrors($user->getErrors()); From bcb747f886ceecc9fb1b165bf88edf105e2989ff Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 20 May 2024 11:19:37 +0100 Subject: [PATCH 2/3] Added string Signed-off-by: snipe --- resources/lang/en-US/account/general.php | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/lang/en-US/account/general.php b/resources/lang/en-US/account/general.php index 7fc060a849..1fc28f3409 100644 --- a/resources/lang/en-US/account/general.php +++ b/resources/lang/en-US/account/general.php @@ -9,4 +9,5 @@ return array( 'api_token_expiration_time' => 'API tokens are set to expire in:', 'api_reference' => 'Please check the API reference to find specific API endpoints and additional API documentation.', + 'profile_updated' => 'Account successfully updated', ); From 6a6272ace38a0b521c97d7b5a5eeeee38f5c9308 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 20 May 2024 11:19:47 +0100 Subject: [PATCH 3/3] 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') }}'; } });