Skip to content
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

Closed
wants to merge 7 commits into from

Conversation

ramiy
Copy link
Contributor

@ramiy ramiy commented Jan 7, 2016

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.

@ramiy ramiy changed the title Merge similar translation strings Merge similar translation strings and avoid using HTML tags in translation strings Jan 7, 2016
@ramiy ramiy mentioned this pull request Jan 7, 2016
5 tasks
@@ -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'] ); ?>
Copy link
Member

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().

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@ramiy
Copy link
Contributor Author

ramiy commented Jan 8, 2016

@ocean90, thanks for the feedback.

@ocean90 ocean90 closed this Jan 18, 2016
@toolstack
Copy link
Contributor

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.

@ramiy
Copy link
Contributor Author

ramiy commented Jan 19, 2016

@toolstack: #217

@toolstack
Copy link
Contributor

Thank @ramiy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants