From 033b371145bbade3494ec8b2f3c475c9517c707e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 29 Sep 2017 11:10:50 +0000 Subject: [PATCH] I18N: Improve i18n in help text for Custom HTML widget and Additional CSS section. Fixes #42032. Built from https://develop.svn.wordpress.org/trunk@41639 git-svn-id: http://core.svn.wordpress.org/trunk@41473 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-manager.php | 13 ++++++------- wp-includes/version.php | 2 +- wp-includes/widgets/class-wp-widget-custom-html.php | 11 +++++------ 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php index 85e225138e..e81c92cc51 100644 --- a/wp-includes/class-wp-customize-manager.php +++ b/wp-includes/class-wp-customize-manager.php @@ -4614,7 +4614,7 @@ final class WP_Customize_Manager { $section_description = '

'; $section_description .= __( 'Add your own CSS code here to customize the appearance and layout of your site.' ); $section_description .= sprintf( - ' %2$s%3$s', + ' %2$s %3$s', esc_url( __( 'https://codex.wordpress.org/CSS' ) ), __( 'Learn more about CSS' ), /* translators: accessibility text */ @@ -4632,12 +4632,11 @@ final class WP_Customize_Manager { if ( 'false' !== wp_get_current_user()->syntax_highlighting ) { $section_description .= '

'; $section_description .= sprintf( - /* translators: placeholder is link to user profile */ - __( 'The edit field automatically highlights code syntax. You can disable this in your %s to work in plain text mode.' ), - sprintf( - ' %2$s%3$s', - esc_url( get_edit_profile_url() ), - __( '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 user profile%3$s to work in plain text mode.' ), + esc_url( get_edit_profile_url() ), + 'class="external-link" target="_blank"', + sprintf( ' %s', /* translators: accessibility text */ __( '(opens in a new window)' ) ) diff --git a/wp-includes/version.php b/wp-includes/version.php index abb132a777..cc3562a41b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-41638'; +$wp_version = '4.9-alpha-41639'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/widgets/class-wp-widget-custom-html.php b/wp-includes/widgets/class-wp-widget-custom-html.php index ad6ce956db..8c4e838e05 100644 --- a/wp-includes/widgets/class-wp-widget-custom-html.php +++ b/wp-includes/widgets/class-wp-widget-custom-html.php @@ -257,12 +257,11 @@ class WP_Widget_Custom_HTML extends WP_Widget { if ( 'false' !== wp_get_current_user()->syntax_highlighting ) { $content .= '

'; $content .= sprintf( - /* translators: placeholder is link to user profile */ - __( 'The edit field automatically highlights code syntax. You can disable this in your %s to work in plain text mode.' ), - sprintf( - ' %2$s%3$s', - esc_url( get_edit_profile_url() ), - __( '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 user profile%3$s to work in plain text mode.' ), + esc_url( get_edit_profile_url() ), + 'class="external-link" target="_blank"', + sprintf( ' %s', /* translators: accessibility text */ __( '(opens in a new window)' ) )