From 0f5bb0e65dd1562d5b08f0c1276480f058e0bb9c Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 7 Jan 2022 16:50:19 -0800 Subject: [PATCH] Localize bakcup restore strings Signed-off-by: snipe --- resources/lang/en/admin/settings/general.php | 6 ++++++ resources/views/settings/backups.blade.php | 20 ++++++++++---------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/resources/lang/en/admin/settings/general.php b/resources/lang/en/admin/settings/general.php index 24ea3d8cea..13520844de 100644 --- a/resources/lang/en/admin/settings/general.php +++ b/resources/lang/en/admin/settings/general.php @@ -25,6 +25,12 @@ return [ 'auto_increment_prefix' => 'Prefix (optional)', 'auto_incrementing_help' => 'Enable auto-incrementing asset IDs first to set this', 'backups' => 'Backups', + 'backups_restoring' => 'Restoring from Backup', + 'backups_upload' => 'Upload Backup', + 'backups_path' => 'Backups on the server are stored in :path', + 'backups_restore_warning' => 'Use the restore button to restore from a previous backup. (This does not currently work with S3 file storage or Docker.

Your entire :app_name database and any uploaded files will be completely replaced by what\'s in the backup file. ', + 'backups_logged_out' => 'You will be logged out once your restore is complete.', + 'backups_large' => 'Very large backups may time out on the restore attempt and may still need to be run via command line. ', 'barcode_settings' => 'Barcode Settings', 'confirm_purge' => 'Confirm Purge', 'confirm_purge_help' => 'Enter the text "DELETE" in the box below to purge your deleted records. This action cannot be undone and will PERMANENTLY delete all soft-deleted items and users. (You should make a backup first, just to be safe.)', diff --git a/resources/views/settings/backups.blade.php b/resources/views/settings/backups.blade.php index 2018fe1212..a87a7897bb 100644 --- a/resources/views/settings/backups.blade.php +++ b/resources/views/settings/backups.blade.php @@ -95,14 +95,17 @@

- Upload Backup

+ {{ trans('admin/settings/general.backups_upload') }} +
-

Backup files on the server are stored in: {{ $path }}

+

+ {!! trans('admin/settings/general.backups_path', ['path'=> $path]) !!} +

@if (config('app.lock_passwords')===true)

{{ trans('general.feature_disabled') }}

@@ -139,7 +142,7 @@
- +
@@ -161,25 +164,22 @@

- Restoring from Backup

+ {{ trans('admin/settings/general.backups_restoring') }}

- Use the restore button to - restore from a previous backup. (This does not currently with with S3 file storage.)

- -

Your entire {{ config('app.name') }} database and any uploaded files will be completely replaced by what's in the backup file. + {!! trans('admin/settings/general.backups_restore_warning', ['app_name' => config('app.name') ]) !!}

- You will be logged out once your restore is complete. + {{ trans('admin/settings/general.backups_logged_out') }}

- Very large backups may time out on the restore attempt and may still need to be run via command line. + {{ trans('admin/settings/general.backups_large') }}