From 09cd087cd0f9ef5bb7614852e501e8142706203c Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 27 Sep 2024 17:29:36 +0200 Subject: [PATCH] chore: Update backup deletion labels to use language files --- app/Livewire/Project/Database/BackupEdit.php | 2 +- app/Livewire/Project/Database/Heading.php | 2 +- lang/en.json | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Livewire/Project/Database/BackupEdit.php b/app/Livewire/Project/Database/BackupEdit.php index ec87beead..98b2b4263 100644 --- a/app/Livewire/Project/Database/BackupEdit.php +++ b/app/Livewire/Project/Database/BackupEdit.php @@ -182,7 +182,7 @@ class BackupEdit extends Component { return view('livewire.project.database.backup-edit', [ 'checkboxes' => [ - ['id' => 'delete_associated_backups_locally', 'label' => 'All backups associated with this backup job from this database will be permanently deleted from local storage.'], + ['id' => 'delete_associated_backups_locally', 'label' => __('database.delete_backups_locally')], // ['id' => 'delete_associated_backups_s3', 'label' => 'All backups associated with this backup job from this database will be permanently deleted from the selected S3 Storage.'] // ['id' => 'delete_associated_backups_sftp', 'label' => 'All backups associated with this backup job from this database will be permanently deleted from the selected SFTP Storage.'] ], diff --git a/app/Livewire/Project/Database/Heading.php b/app/Livewire/Project/Database/Heading.php index 765213f60..49884ff9a 100644 --- a/app/Livewire/Project/Database/Heading.php +++ b/app/Livewire/Project/Database/Heading.php @@ -78,7 +78,7 @@ class Heading extends Component { return view('livewire.project.database.heading', [ 'checkboxes' => [ - ['id' => 'docker_cleanup', 'label' => 'Cleanup docker build cache and unused images (next deployment could take longer).'], + ['id' => 'docker_cleanup', 'label' => __('resource.docker_cleanup')], ], ]); } diff --git a/lang/en.json b/lang/en.json index 45fd72743..fa69c7035 100644 --- a/lang/en.json +++ b/lang/en.json @@ -32,5 +32,6 @@ "resource.non_persistent": "All non-persistent data will be deleted.", "resource.delete_volumes": "Permanently delete all volumes associated with this resource.", "resource.delete_connected_networks": "Permanently delete all non-predefined networks associated with this resource.", - "resource.delete_configurations": "Permanently delete all configuration files from the server." + "resource.delete_configurations": "Permanently delete all configuration files from the server.", + "database.delete_backups_locally": "All backups will be permanently deleted from local storage." }