From 276a69d6f9e09ba2a1407e935b002a559f911ffe Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sat, 13 Dec 2014 00:46:20 +0000 Subject: [PATCH] TinyMCE: add another `Edit` translatable string for the tooltip of the Edit button on the image toolbar. Props pavelevap, see #30694. git-svn-id: https://develop.svn.wordpress.org/trunk@30839 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-editor.php | 3 ++- src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index 538825359d..a51c680369 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/wp-includes/class-wp-editor.php @@ -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 ); /** diff --git a/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js b/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js index df1d49c376..dd2113bef8 100644 --- a/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js +++ b/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js @@ -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() );