Make WordPress Core

Changeset 44400 for branches/5.0


Ignore:
Timestamp:
01/05/2019 03:50:46 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.

Merges [44398-44399] to the 5.0 branch.
Fixes #45788.

Location:
branches/5.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0

  • branches/5.0/src/wp-includes/class-wp-editor.php

    r43915 r44400  
    12661266            'Visual' => _x( 'Visual', 'Name for the Visual editor tab' ), // Editor switch tab label
    12671267            'Text' => _x( 'Text', 'Name for the Text editor tab (formerly HTML)' ), // Editor switch tab label
     1268            'Add Media' => array( __( 'Add Media' ), 'accessM' ), // Tooltip for the 'Add Media' button in the Block Editor Classic block
    12681269
    12691270            // Shortcuts help modal
Note: See TracChangeset for help on using the changeset viewer.