mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Use translated string for restore
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
614d05acb5
commit
aab29fbb6b
|
@ -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'));
|
||||
}
|
||||
|
|
|
@ -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.',
|
||||
|
|
Loading…
Reference in a new issue