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

Improve I18N Issues (Based on 2.2.4) #322

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions admin/partials/nginx-helper-general-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -567,15 +567,8 @@
];
}

printf(
'<p class="enable-logging-message">(<b>%1$s:</b> %2$s %3$s %4$s <b>NGINX_HELPER_LOG</b> constant %5$s <b>%6$s</b> %7$s <b>wp-config.php</b>)</p>',
esc_html__( 'NOTE', 'nginx-helper' ),
esc_html__( 'To', 'nginx-helper' ),
esc_html( $setting_message_detail['status'] ),
esc_html__( 'the logging feature, you must define', 'nginx-helper' ),
esc_html__( 'as', 'nginx-helper' ),
esc_html( $setting_message_detail['value'] ),
esc_html__( 'in your', 'nginx-helper' )
printf(esc_html__(
'%1$s(%2$sNOTE:%3$s To %4$s the logging feature, you must define %2$sNGINX_HELPER_LOG%3$s constant as %2$s%5$s%3$s in your %2$swp-config.php%3$s)%6$s', 'nginx-helper'),'<p class="enable-logging-message">','<b>','</b>',$setting_message_detail['status'],$setting_message_detail['value'],'</p>'
);
}
?>
Expand Down
8 changes: 3 additions & 5 deletions admin/partials/nginx-helper-sidebar-display.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@
<div class="inside">
<p>
<?php
printf(
'%s <a href=\'%s\'>%s</a>.',
esc_html__( 'Please use our', 'nginx-helper' ),
esc_url( 'http://rtcamp.com/support/forum/wordpress-nginx/' ),
esc_html__( 'free support forum', 'nginx-helper' )
printf(esc_html__(
'Please use our %1$sfree support forum%2$s.', 'nginx-helper' )
,'<a href="http://rtcamp.com/support/forum/wordpress-nginx/" target="_blank">','</a>'
);
?>
</p>
Expand Down