Skip to content

Commit

Permalink
Update all Feature descriptions to ensure these make more sense in th…
Browse files Browse the repository at this point in the history
…e new settings UI
  • Loading branch information
dkotter committed Dec 17, 2024
1 parent 650d77b commit 9490710
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion includes/Classifai/Features/AudioTranscriptsGeneration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion includes/Classifai/Features/Classification.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion includes/Classifai/Features/DescriptiveTextGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion includes/Classifai/Features/ImageGeneration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion includes/Classifai/Features/ImageTagsGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion includes/Classifai/Features/ImageTextExtraction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion includes/Classifai/Features/Smart404.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion includes/Classifai/Features/TextToSpeech.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
}

/**
Expand Down

0 comments on commit 9490710

Please sign in to comment.