From 9c42554b64067b6bbae4530c21db84248ebf5cf2 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Sat, 5 Jan 2019 03:39:54 +0000 Subject: [PATCH] =?UTF-8?q?Editor:=20Allow=20the=20=E2=80=9CAdd=20Media?= =?UTF-8?q?=E2=80=9D=20button=20tooltip=20to=20be=20translated=20in=20the?= =?UTF-8?q?=20Classic=20block.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the Classic Editor, the “Add Media” button was outside of the TinyMCE editor. In the Block Editor, the “Add Media” button was moved into the TinyMCE toolbar in the Classic block, but the tooltip was not added to the list of translatable strings. This adds “Add Media” to that list. The corresponding keyboard shortcut is also specified for the “Add Media” button. Props afercia. Fixes #45788. git-svn-id: https://develop.svn.wordpress.org/trunk@44398 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-editor.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index 7de08a7327..3dae85302d 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/wp-includes/class-wp-editor.php @@ -1284,6 +1284,7 @@ final class _WP_Editors { 'Link options' => __( 'Link options' ), // Tooltip for the 'link options' button in the inline link dialog '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 + 'Add Media' => array( __( 'Add Media' ), 'accessM' ), // Tooltip for the 'Add Media' button in the Gutenberg Classic block // Shortcuts help modal 'Keyboard Shortcuts' => array( __( 'Keyboard Shortcuts' ), 'accessH' ),