Editor: Allow the “Add Media” button tooltip to be translated in the Classic block.

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.
Built from https://develop.svn.wordpress.org/trunk@44398


git-svn-id: http://core.svn.wordpress.org/trunk@44228 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj 2019-01-05 03:40:50 +00:00
parent 4e3e9ca9cf
commit 80503c5c0e
2 changed files with 2 additions and 1 deletions

View File

@ -1284,6 +1284,7 @@ final class _WP_Editors {
'Link options' => __( 'Link options' ), // Tooltip for the 'link options' button in the inline link dialog '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 '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 '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 // Shortcuts help modal
'Keyboard Shortcuts' => array( __( 'Keyboard Shortcuts' ), 'accessH' ), 'Keyboard Shortcuts' => array( __( 'Keyboard Shortcuts' ), 'accessH' ),

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.1-alpha-44397'; $wp_version = '5.1-alpha-44398';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.