From 817e0c1eb7bdbf7550487127676b191a6edb647e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 25 Jul 2017 22:57:16 +0000 Subject: [PATCH] I18N: Use a consistent context for Visual and Text editor tab labels. Props pedromendonca. Fixes #41438. git-svn-id: https://develop.svn.wordpress.org/trunk@41152 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-editor.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index 84abf261e7..a61f239788 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/wp-includes/class-wp-editor.php @@ -179,7 +179,7 @@ final class _WP_Editors { } $buttons .= '\n"; + ' data-wp-editor-id="' . $editor_id_attr . '">' . _x( 'Visual', 'Name for the Visual editor tab' ) . "\n"; $buttons .= '\n"; } else { @@ -1257,8 +1257,8 @@ final class _WP_Editors { 'Paste URL or type to search' => __( 'Paste URL or type to search' ), // Placeholder for the inline link dialog 'Apply' => __( 'Apply' ), // Tooltip for the 'apply' button in the inline link dialog 'Link options' => __( 'Link options' ), // Tooltip for the 'link options' button in the inline link dialog - 'Visual' => __( 'Visual' ), // Editor switch tab label - 'Text' => __( 'Text' ), // Editor switch tab label + 'Visual' => _x( 'Visual', 'Name for the Visual editor tab' ), // Editor switch tab label + 'Text' => _x( 'Text', 'Name for the Text editor tab (formerly HTML)' ), // Editor switch tab label // Shortcuts help modal 'Keyboard Shortcuts' => array( __( 'Keyboard Shortcuts' ), 'accessH' ),