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
|
@ -4614,7 +4614,7 @@ final class WP_Customize_Manager {
|
||||||
$section_description = '<p>';
|
$section_description = '<p>';
|
||||||
$section_description .= __( 'Add your own CSS code here to customize the appearance and layout of your site.' );
|
$section_description .= __( 'Add your own CSS code here to customize the appearance and layout of your site.' );
|
||||||
$section_description .= sprintf(
|
$section_description .= sprintf(
|
||||||
' <a href="%1$s" class="external-link" target="_blank">%2$s<span class="screen-reader-text">%3$s</span></a>',
|
' <a href="%1$s" class="external-link" target="_blank">%2$s<span class="screen-reader-text"> %3$s</span></a>',
|
||||||
esc_url( __( 'https://codex.wordpress.org/CSS' ) ),
|
esc_url( __( 'https://codex.wordpress.org/CSS' ) ),
|
||||||
__( 'Learn more about CSS' ),
|
__( 'Learn more about CSS' ),
|
||||||
/* translators: accessibility text */
|
/* translators: accessibility text */
|
||||||
|
@ -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(
|
esc_url( get_edit_profile_url() ),
|
||||||
' <a href="%1$s" class="external-link" target="_blank">%2$s<span class="screen-reader-text">%3$s</span></a>',
|
'class="external-link" target="_blank"',
|
||||||
esc_url( get_edit_profile_url() ),
|
sprintf( '<span class="screen-reader-text"> %s</span>',
|
||||||
__( 'user profile' ),
|
|
||||||
/* 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(
|
esc_url( get_edit_profile_url() ),
|
||||||
' <a href="%1$s" class="external-link" target="_blank">%2$s<span class="screen-reader-text">%3$s</span></a>',
|
'class="external-link" target="_blank"',
|
||||||
esc_url( get_edit_profile_url() ),
|
sprintf( '<span class="screen-reader-text"> %s</span>',
|
||||||
__( 'user profile' ),
|
|
||||||
/* translators: accessibility text */
|
/* translators: accessibility text */
|
||||||
__( '(opens in a new window)' )
|
__( '(opens in a new window)' )
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue