Use translated string for restore

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-26 16:47:40 +01:00
parent 614d05acb5
commit aab29fbb6b
2 changed files with 4 additions and 1 deletions

View file

@ -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'));
}

View file

@ -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.',