Skip to content

A free open source IT asset/license management system

Localize bakcup restore strings

snipe0f5bb0e65dd1
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 <code>:path</code>',
+ 'backups_restore_warning' => 'Use the restore button <small><span class="btn btn-xs btn-warning"><i class="text-white fas fa-retweet" aria-hidden="true"></i></span></small> to restore from a previous backup. (This does not currently work with S3 file storage or Docker.<br><br>Your <strong>entire :app_name database and any uploaded files will be completely replaced</strong> 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 @@
<div class="box-header with-border">
<h2 class="box-title">
<i class="far fa-file-archive" aria-hidden="true"></i>
- Upload Backup</h2>
+ {{ trans('admin/settings/general.backups_upload') }}
+ </h2>
<div class="box-tools pull-right">
</div>
</div><!-- /.box-header -->
<div class="box-body">
- <p>Backup files on the server are stored in: <code>{{ $path }}</code></p>
+ <p>
+ {!! trans('admin/settings/general.backups_path', ['path'=> $path]) !!}
+ </p>
@if (config('app.lock_passwords')===true)
<p class="alert alert-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p>
@@ -139,7 +142,7 @@
</div>
<div class="col-md-4 col-xs-4">
- <button class="btn btn-primary col-md-12 col-xs-12" id="uploadButton" disabled>Upload</button>
+ <button class="btn btn-primary col-md-12 col-xs-12" id="uploadButton" disabled>{{ trans('button.upload') }}</button>
</div>
<div class="col-md-12">
@@ -161,25 +164,22 @@
<div class="box box-warning">
<div class="box-header with-border">
<h2 class="box-title">
- <i class="fas fa-exclamation-triangle text-orange" aria-hidden="true"></i> Restoring from Backup</h2>
+ <i class="fas fa-exclamation-triangle text-orange" aria-hidden="true"></i> {{ trans('admin/settings/general.backups_restoring') }}</h2>
<div class="box-tools pull-right">
</div>
</div><!-- /.box-header -->
<div class="box-body">
<p>
- Use the restore button <small><span class="btn btn-xs btn-warning"><i class="text-white fas fa-retweet" aria-hidden="true"></i></span></small> to
- restore from a previous backup. (This does not currently with with S3 file storage.)</p>
-
- <p>Your <strong>entire {{ config('app.name') }} database and any uploaded files will be completely replaced</strong> by what's in the backup file.
+ {!! trans('admin/settings/general.backups_restore_warning', ['app_name' => config('app.name') ]) !!}
</p>
<p class="text-danger" style="font-weight: bold; font-size: 120%;">
- You will be logged out once your restore is complete.
+ {{ trans('admin/settings/general.backups_logged_out') }}
</p>
<p>
- 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') }}
</p>
</div>