diff --git a/README.md b/README.md index 807d346..e4e8034 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,10 @@ Sure! You are welcome to report any issues or add feature suggestions on the [Gi ## Changelog +### 1.2.2 + +* Add prepare to print out to root translation preview row. + ### 1.2.1 * Fix missing version number. diff --git a/gp-convert-pt-ao90.php b/gp-convert-pt-ao90.php index b1a16b5..b3bfe26 100644 --- a/gp-convert-pt-ao90.php +++ b/gp-convert-pt-ao90.php @@ -19,7 +19,7 @@ * GitHub Plugin URI: https://github.com/pedro-mendonca/GP-Convert-PT-AO90 * Primary Branch: main * Description: Language tool for GlotPress to convert text according to the Portuguese Language Orthographic Agreement of 1990 (PT AO90). - * Version: 1.2.1 + * Version: 1.2.2 * Requires at least: 5.3 * Tested up to: 6.0 * Requires PHP: 7.2 diff --git a/gp-templates/translation-row-preview.php b/gp-templates/translation-row-preview.php index 4c175c6..6bb4e06 100644 --- a/gp-templates/translation-row-preview.php +++ b/gp-templates/translation-row-preview.php @@ -54,10 +54,10 @@ $singular_translation = esc_translation( $translation->translations[0] ); // Check if has root. if ( isset( $translation->root_id ) ) { - $singular_translation = prepare_original( GP_Convert_PT_AO90\Portuguese_AO90::highlight_diff( esc_translation( $translation->root_translation_0 ), esc_translation( $translation->translations[0] ) ) ); + $singular_translation = GP_Convert_PT_AO90\Portuguese_AO90::highlight_diff( esc_translation( $translation->root_translation_0 ), esc_translation( $translation->translations[0] ) ); } // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - echo '' . $singular_translation . ''; + echo '' . prepare_original( $singular_translation ) . ''; else : ?>