Making WordPress.org


Ignore:
Timestamp:
05/02/2020 10:50:07 AM (5 years ago)
Author:
ocean90
Message:

Translate: Split multiple translator comments for an original into separate lines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/translation-row-editor.php

    r9813 r9814  
    107107                        <?php endif; ?>
    108108                        <?php if ( $translation->extracted_comments ) :
    109                             $comments = trim( preg_replace( '/^translators:/ ', '', $translation->extracted_comments ) );
    110109                            ?>
    111110                            <details open class="source-details__comment">
    112111                                <summary><?php _e( 'Comment', 'glotpress' ); ?></summary>
    113                                 <p><?php echo make_clickable( esc_translation( $comments ) ); ?></p>
     112                                <p>
     113                                    <?php
     114                                    /**
     115                                     * Filters the extracted comments of an original.
     116                                     *
     117                                     * @param string         $extracted_comments Extracted comments of an original.
     118                                     * @param GP_Translation $translation        Translation object.
     119                                     */
     120                                    // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     121                                    echo apply_filters( 'gp_original_extracted_comments', $translation->extracted_comments, $translation );
     122                                    ?>
     123                                </p>
    114124                            </details>
    115125                        <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.