From 587770261d82e4792cde650569ae6d270486e51c Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Tue, 12 Nov 2024 20:15:56 +0000 Subject: [PATCH] translate this as well --- lang/en/messages.php | 1 + src/Transformers/AssetsTransformer.php | 2 +- src/Transformers/BardTransformer.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lang/en/messages.php b/lang/en/messages.php index d0b0ecf..11d9d07 100644 --- a/lang/en/messages.php +++ b/lang/en/messages.php @@ -18,6 +18,7 @@ 'assets_base_url_instructions' => 'The base URL to prepend to the path.', 'assets_download_when_missing_instructions' => 'If the asset can\'t be found in the asset container, should it be downloaded?', + 'assets_folder_instructions' => 'By default, downloaded assets will use same folder structure as the original URL. You can specify a different folder here.', 'assets_related_field_instructions' => 'Which field does the data reference?', 'entries_create_when_missing_instructions' => 'Create the entry if it doesn\'t exist.', 'entries_related_field_instructions' => 'Which field does the data reference?', diff --git a/src/Transformers/AssetsTransformer.php b/src/Transformers/AssetsTransformer.php index e8bbdae..c03d084 100644 --- a/src/Transformers/AssetsTransformer.php +++ b/src/Transformers/AssetsTransformer.php @@ -113,7 +113,7 @@ public function fieldItems(): array 'folder' => [ 'type' => 'asset_folder', 'display' => __('Folder'), - 'instructions' => __('By default, downloaded assets will use same folder structure as the original URL. You can specify a different folder here.'), + 'instructions' => __('importer::messages.assets_folder_instructions'), 'if' => ['download_when_missing' => true], 'container' => $this->field->get('container'), 'max_items' => 1, diff --git a/src/Transformers/BardTransformer.php b/src/Transformers/BardTransformer.php index 5123fff..ac9d4a3 100644 --- a/src/Transformers/BardTransformer.php +++ b/src/Transformers/BardTransformer.php @@ -107,7 +107,7 @@ public function fieldItems(): array 'assets_folder' => [ 'type' => 'asset_folder', 'display' => __('Folder'), - 'instructions' => __('By default, downloaded assets will use same folder structure as the original URL. You can specify a different folder here.'), + 'instructions' => __('importer::messages.assets_folder_instructions'), 'if' => ['assets_download_when_missing' => true], 'container' => $this->field->get('container'), 'max_items' => 1,