From aab29fbb6b67fecba5c017a2542f03b70c0f1997 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 26 Jul 2024 16:47:40 +0100 Subject: [PATCH] Use translated string for restore Signed-off-by: snipe --- app/Http/Controllers/SettingsController.php | 2 +- resources/lang/en-US/admin/settings/message.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index d186d42cf4..9c7392560d 100755 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -1255,7 +1255,7 @@ class SettingsController extends Controller DB::table('users')->update(['remember_token' => null]); Auth::logout(); - return redirect()->route('login')->with('success', 'Your system has been restored. Please login again.'); + return redirect()->route('login')->with('success', trans('admin/settings/message.restore.success')); } else { return redirect()->route('settings.backups.index')->with('error', trans('admin/settings/message.backup.file_not_found')); } diff --git a/resources/lang/en-US/admin/settings/message.php b/resources/lang/en-US/admin/settings/message.php index c9b0f34217..24e2d292ca 100644 --- a/resources/lang/en-US/admin/settings/message.php +++ b/resources/lang/en-US/admin/settings/message.php @@ -14,6 +14,9 @@ return [ 'restore_warning' => 'Yes, restore it. I acknowledge that this will overwrite any existing data currently in the database. This will also log out all of your existing users (including you).', 'restore_confirm' => 'Are you sure you wish to restore your database from :filename?' ], + 'restore' => [ + 'success' => 'Your system backup has been restored. Please login again.' + ], 'purge' => [ 'error' => 'An error has occurred while purging. ', 'validation_failed' => 'Your purge confirmation is incorrect. Please type the word "DELETE" in the confirmation box.',