TinyMCE: add another Edit translatable string for the tooltip of the Edit button on the image toolbar. Props pavelevap, see #30694.

Built from https://develop.svn.wordpress.org/trunk@30839


git-svn-id: http://core.svn.wordpress.org/trunk@30829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2014-12-13 00:47:22 +00:00
parent deb5337d7c
commit 9f2fc255f8
4 changed files with 4 additions and 3 deletions

View File

@ -984,7 +984,7 @@ final class _WP_Editors {
// TinyMCE menus
'Insert' => _x( 'Insert', 'TinyMCE menu' ),
'File' => _x( 'File', 'TinyMCE menu' ),
'Edit' => _x( 'Edit', 'TinyMCE menu and tooltip for the Edit button in the image toolbar' ),
'Edit' => _x( 'Edit', 'TinyMCE menu' ),
'Tools' => _x( 'Tools', 'TinyMCE menu' ),
'View' => _x( 'View', 'TinyMCE menu' ),
'Table' => _x( 'Table', 'TinyMCE menu' ),
@ -998,6 +998,7 @@ final class _WP_Editors {
'Distraction Free Writing' => __( 'Distraction Free Writing' ),
'No alignment' => __( 'No alignment' ), // Tooltip for the 'alignnone' button in the image toolbar
'Remove' => __( 'Remove' ), // Tooltip for the 'remove' button in the image toolbar
'Edit ' => __( 'Edit' ), // Tooltip for the 'edit' button in the image toolbar
);
/**

View File

@ -22,7 +22,7 @@ tinymce.PluginManager.add( 'wpeditimage', function( editor ) {
} );
editor.addButton( 'wp_img_edit', {
tooltip: 'Edit',
tooltip: 'Edit ', // trailing space is needed, used for context
icon: 'dashicon dashicons-edit',
onclick: function() {
editImage( editor.selection.getNode() );

File diff suppressed because one or more lines are too long