-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge similar translation strings and avoid using HTML tags in translation strings #198
Conversation
@@ -87,7 +87,7 @@ function textareas( $entry, $permissions, $index = 0 ) { | |||
$warning = each( $referenceable ); | |||
?> | |||
<div class="warning secondary"> | |||
<?php printf( __( '<strong>Warning:</strong> %s', 'glotpress' ), esc_html( $warning['value'] ) ); ?> | |||
<strong><?php _e( 'Warning:', 'glotpress' ); ?></strong> <?php esc_html_e( $warning['value'] ); ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
esc_html_e()
is used incorrect, should be echo esc_html()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
@ocean90, thanks for the feedback. |
Hi @ramiy , as part of our move to the new repo this PR was closed when we merged back to "master" from "wordpress-dbi-plugin". If you still want to get it merged, just create a new PR to the "master" branch of the GlotPress/GlotPress-WP repo. Thanks and sorry of the inconvenience. |
Thank @ramiy. |
Based on my trac tickets:
https://glotpress.trac.wordpress.org/ticket/504
https://glotpress.trac.wordpress.org/ticket/505
See the screenshot (and attached patch).
We are merging similar strings with different variations and avoid using HTML
<code>
tags in translation strings.