Make WordPress Core

Changeset 44398


Ignore:
Timestamp:
01/05/2019 03:39:54 AM (6 years ago)
Author:
desrosj
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r44257 r44398  
    12851285                'Visual'                               => _x( 'Visual', 'Name for the Visual editor tab' ), // Editor switch tab label
    12861286                'Text'                                 => _x( 'Text', 'Name for the Text editor tab (formerly HTML)' ), // Editor switch tab label
     1287                'Add Media'                            => array( __( 'Add Media' ), 'accessM' ), // Tooltip for the 'Add Media' button in the Gutenberg Classic block
    12871288
    12881289                // Shortcuts help modal
Note: See TracChangeset for help on using the changeset viewer.