From 9490710a3bd1cd269aa2625d1901fd9af166d757 Mon Sep 17 00:00:00 2001 From: Darin Kotter Date: Tue, 17 Dec 2024 11:00:26 -0700 Subject: [PATCH] Update all Feature descriptions to ensure these make more sense in the new settings UI --- includes/Classifai/Features/AudioTranscriptsGeneration.php | 2 +- includes/Classifai/Features/Classification.php | 2 +- includes/Classifai/Features/DescriptiveTextGenerator.php | 2 +- includes/Classifai/Features/ImageGeneration.php | 2 +- includes/Classifai/Features/ImageTagsGenerator.php | 2 +- includes/Classifai/Features/ImageTextExtraction.php | 2 +- includes/Classifai/Features/Smart404.php | 2 +- includes/Classifai/Features/TextToSpeech.php | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/includes/Classifai/Features/AudioTranscriptsGeneration.php b/includes/Classifai/Features/AudioTranscriptsGeneration.php index 41467f689..2f15951fd 100644 --- a/includes/Classifai/Features/AudioTranscriptsGeneration.php +++ b/includes/Classifai/Features/AudioTranscriptsGeneration.php @@ -260,7 +260,7 @@ public function maybe_transcribe_audio( int $attachment_id ) { * @return string */ public function get_enable_description(): string { - return esc_html__( 'Enabling this will automatically generate transcripts for supported audio files.', 'classifai' ); + return esc_html__( 'Automatically generate transcripts for supported audio files.', 'classifai' ); } /** diff --git a/includes/Classifai/Features/Classification.php b/includes/Classifai/Features/Classification.php index 8e9c9f1c5..2e6d397e0 100644 --- a/includes/Classifai/Features/Classification.php +++ b/includes/Classifai/Features/Classification.php @@ -738,7 +738,7 @@ public function render_previewer( string $active_feature ) { * @return string */ public function get_enable_description(): string { - return esc_html__( 'Enables content classification.', 'classifai' ); + return esc_html__( 'Classify your content automatically or when manually triggered.', 'classifai' ); } /** diff --git a/includes/Classifai/Features/DescriptiveTextGenerator.php b/includes/Classifai/Features/DescriptiveTextGenerator.php index d948b188d..e7fe35280 100644 --- a/includes/Classifai/Features/DescriptiveTextGenerator.php +++ b/includes/Classifai/Features/DescriptiveTextGenerator.php @@ -345,7 +345,7 @@ public function get_alt_text_settings(): array { * @return string */ public function get_enable_description(): string { - return esc_html__( 'Enable this to generate descriptive text for images.', 'classifai' ); + return esc_html__( 'Automatically generate descriptive text for images, storing this as image alt text, caption or description.', 'classifai' ); } /** diff --git a/includes/Classifai/Features/ImageGeneration.php b/includes/Classifai/Features/ImageGeneration.php index 3046e9729..3f7e67c86 100644 --- a/includes/Classifai/Features/ImageGeneration.php +++ b/includes/Classifai/Features/ImageGeneration.php @@ -382,7 +382,7 @@ function ( $role ) { * @return string */ public function get_enable_description(): string { - return esc_html__( 'When enabled, a new Generate images tab will be shown in the media upload flow, allowing you to generate and import images.', 'classifai' ); + return esc_html__( 'Add a new "Generate images" tab in the media upload flow, allowing you to generate and import images.', 'classifai' ); } /** diff --git a/includes/Classifai/Features/ImageTagsGenerator.php b/includes/Classifai/Features/ImageTagsGenerator.php index 991a3d0ed..ff0f82162 100644 --- a/includes/Classifai/Features/ImageTagsGenerator.php +++ b/includes/Classifai/Features/ImageTagsGenerator.php @@ -293,7 +293,7 @@ public function add_rescan_button_to_media_modal( array $form_fields, \WP_Post $ * @return string */ public function get_enable_description(): string { - return esc_html__( 'Image tags will be added automatically.', 'classifai' ); + return esc_html__( 'Automatically add relevant tags to your images.', 'classifai' ); } /** diff --git a/includes/Classifai/Features/ImageTextExtraction.php b/includes/Classifai/Features/ImageTextExtraction.php index a9eca3840..b0f4eb140 100644 --- a/includes/Classifai/Features/ImageTextExtraction.php +++ b/includes/Classifai/Features/ImageTextExtraction.php @@ -394,7 +394,7 @@ public function add_rescan_button_to_media_modal( array $form_fields, \WP_Post $ * @return string */ public function get_enable_description(): string { - return esc_html__( 'OCR detects text in images (e.g., handwritten notes) and saves that as post content.', 'classifai' ); + return esc_html__( 'OCR detects text in images (e.g., handwritten notes) and saves that as content with the image.', 'classifai' ); } /** diff --git a/includes/Classifai/Features/Smart404.php b/includes/Classifai/Features/Smart404.php index 08fe1797d..c0a5283ef 100644 --- a/includes/Classifai/Features/Smart404.php +++ b/includes/Classifai/Features/Smart404.php @@ -78,7 +78,7 @@ public function setup() { * @return string */ public function get_enable_description(): string { - return esc_html__( 'Enable Smart 404 functionality.', 'classifai' ); + return esc_html__( 'Adds a Smart 404 component that can be used to recommend content on a 404 page.', 'classifai' ); } /** diff --git a/includes/Classifai/Features/TextToSpeech.php b/includes/Classifai/Features/TextToSpeech.php index fa7229384..b754fd349 100644 --- a/includes/Classifai/Features/TextToSpeech.php +++ b/includes/Classifai/Features/TextToSpeech.php @@ -717,7 +717,7 @@ public function render_post_audio_controls( string $content ): string { * @return string */ public function get_enable_description(): string { - return esc_html__( 'Enables speech generation for post content.', 'classifai' ); + return esc_html__( 'Generate an audio file from post content and output a "Read to Me" component.', 'classifai' ); } /**