Skip to content

Commit 12f55af

Browse files
committed
Improve translatable strings
1 parent 8341b17 commit 12f55af

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

includes/Traits/AI_Check_Names.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ protected function add_disallowed_section( &$parts, $decoded ) {
654654
$text .= ' (' . implode( ', ', $decoded['disallowed_type'] ) . ')';
655655
}
656656
if ( ! empty( $text ) ) {
657-
$parts[] = '<strong>' . __( '🚫 Disallowed:', 'plugin-check' ) . '</strong> ' . $text;
657+
$parts[] = '<strong>🚫 ' . esc_html__( 'Disallowed:', 'plugin-check' ) . '</strong> ' . $text;
658658
}
659659
}
660660

@@ -669,7 +669,7 @@ protected function add_disallowed_section( &$parts, $decoded ) {
669669
*/
670670
protected function add_naming_section( &$parts, $decoded ) {
671671
if ( ! empty( $decoded['possible_naming_issues'] ) && ! empty( $decoded['naming_explanation'] ) ) {
672-
$parts[] = '<strong>' . __( '📝 Naming:', 'plugin-check' ) . '</strong> ' . $decoded['naming_explanation'];
672+
$parts[] = '<strong>📝 ' . esc_html__( 'Naming:', 'plugin-check' ) . '</strong> ' . $decoded['naming_explanation'];
673673
}
674674
}
675675

@@ -684,7 +684,7 @@ protected function add_naming_section( &$parts, $decoded ) {
684684
*/
685685
protected function add_owner_section( &$parts, $decoded ) {
686686
if ( ! empty( $decoded['possible_owner_issues'] ) && ! empty( $decoded['owner_explanation'] ) ) {
687-
$parts[] = '<strong>' . __( '©️ Owner/Trademark:', 'plugin-check' ) . '</strong> ' . $decoded['owner_explanation'];
687+
$parts[] = '<strong>©️ ' . esc_html__( 'Owner/Trademark:', 'plugin-check' ) . '</strong> ' . $decoded['owner_explanation'];
688688
}
689689
}
690690

@@ -699,7 +699,7 @@ protected function add_owner_section( &$parts, $decoded ) {
699699
*/
700700
protected function add_description_section( &$parts, $decoded ) {
701701
if ( ! empty( $decoded['possible_description_issues'] ) && ! empty( $decoded['description_explanation'] ) ) {
702-
$parts[] = '<strong>' . __( '📄 Description:', 'plugin-check' ) . '</strong> ' . $decoded['description_explanation'];
702+
$parts[] = '<strong>📄 ' . esc_html__( 'Description:', 'plugin-check' ) . '</strong> ' . $decoded['description_explanation'];
703703
}
704704
}
705705

@@ -715,7 +715,7 @@ protected function add_description_section( &$parts, $decoded ) {
715715
protected function add_trademarks_section( &$parts, $decoded ) {
716716
if ( ! empty( $decoded['trademarks_or_project_names_array'] ) && is_array( $decoded['trademarks_or_project_names_array'] ) ) {
717717
$trademarks = implode( ', ', array_map( 'esc_html', $decoded['trademarks_or_project_names_array'] ) );
718-
$parts[] = '<strong>' . __( '™️ Trademarks Detected:', 'plugin-check' ) . '</strong> ' . $trademarks;
718+
$parts[] = '<strong>™️ ' . esc_html__( 'Trademarks Detected:', 'plugin-check' ) . '</strong> ' . $trademarks;
719719
}
720720
}
721721

@@ -745,7 +745,7 @@ protected function add_suggestions_section( &$parts, $decoded ) {
745745
}
746746

747747
if ( ! empty( $suggestions ) ) {
748-
$parts[] = '<br><strong>' . __( '💡 Suggestions:', 'plugin-check' ) . '</strong><br>' . implode( '<br>', $suggestions );
748+
$parts[] = '<br><strong>💡 ' . esc_html__( 'Suggestions:', 'plugin-check' ) . '</strong><br>' . implode( '<br>', $suggestions );
749749
}
750750
}
751751

@@ -761,7 +761,7 @@ protected function add_suggestions_section( &$parts, $decoded ) {
761761
protected function add_language_section( &$parts, $decoded ) {
762762
if ( isset( $decoded['description_language_is_in_english'] ) && false === $decoded['description_language_is_in_english'] ) {
763763
if ( ! empty( $decoded['description_what_is_not_in_english'] ) ) {
764-
$parts[] = '<strong>' . __( '🌐 Language:', 'plugin-check' ) . '</strong> ' . $decoded['description_what_is_not_in_english'];
764+
$parts[] = '<strong>🌐 ' . esc_html__( 'Language:', 'plugin-check' ) . '</strong> ' . $decoded['description_what_is_not_in_english'];
765765
}
766766
}
767767
}

0 commit comments

Comments
 (0)