I18N: Improve i18n in help text for Custom HTML widget and Additional CSS section.
Fixes #42032. git-svn-id: https://develop.svn.wordpress.org/trunk@41639 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fa754724e1
commit
b8d32950e7
|
@ -4632,12 +4632,11 @@ final class WP_Customize_Manager {
|
||||||
if ( 'false' !== wp_get_current_user()->syntax_highlighting ) {
|
if ( 'false' !== wp_get_current_user()->syntax_highlighting ) {
|
||||||
$section_description .= '<p>';
|
$section_description .= '<p>';
|
||||||
$section_description .= sprintf(
|
$section_description .= sprintf(
|
||||||
/* translators: placeholder is link to user profile */
|
/* translators: 1: link to user profile, 2: additional link attributes, 3: accessibility text */
|
||||||
__( 'The edit field automatically highlights code syntax. You can disable this in your %s to work in plain text mode.' ),
|
__( 'The edit field automatically highlights code syntax. You can disable this in your <a href="%1$s" %2$s>user profile%3$s</a> to work in plain text mode.' ),
|
||||||
sprintf(
|
|
||||||
' <a href="%1$s" class="external-link" target="_blank">%2$s<span class="screen-reader-text">%3$s</span></a>',
|
|
||||||
esc_url( get_edit_profile_url() ),
|
esc_url( get_edit_profile_url() ),
|
||||||
__( 'user profile' ),
|
'class="external-link" target="_blank"',
|
||||||
|
sprintf( '<span class="screen-reader-text"> %s</span>',
|
||||||
/* translators: accessibility text */
|
/* translators: accessibility text */
|
||||||
__( '(opens in a new window)' )
|
__( '(opens in a new window)' )
|
||||||
)
|
)
|
||||||
|
|
|
@ -257,12 +257,11 @@ class WP_Widget_Custom_HTML extends WP_Widget {
|
||||||
if ( 'false' !== wp_get_current_user()->syntax_highlighting ) {
|
if ( 'false' !== wp_get_current_user()->syntax_highlighting ) {
|
||||||
$content .= '<p>';
|
$content .= '<p>';
|
||||||
$content .= sprintf(
|
$content .= sprintf(
|
||||||
/* translators: placeholder is link to user profile */
|
/* translators: 1: link to user profile, 2: additional link attributes, 3: accessibility text */
|
||||||
__( 'The edit field automatically highlights code syntax. You can disable this in your %s to work in plain text mode.' ),
|
__( 'The edit field automatically highlights code syntax. You can disable this in your <a href="%1$s" %2$s>user profile%3$s</a> to work in plain text mode.' ),
|
||||||
sprintf(
|
|
||||||
' <a href="%1$s" class="external-link" target="_blank">%2$s<span class="screen-reader-text">%3$s</span></a>',
|
|
||||||
esc_url( get_edit_profile_url() ),
|
esc_url( get_edit_profile_url() ),
|
||||||
__( 'user profile' ),
|
'class="external-link" target="_blank"',
|
||||||
|
sprintf( '<span class="screen-reader-text"> %s</span>',
|
||||||
/* translators: accessibility text */
|
/* translators: accessibility text */
|
||||||
__( '(opens in a new window)' )
|
__( '(opens in a new window)' )
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue