Ticket #43773: 43773.diff
File 43773.diff, 2.4 KB (added by , 7 years ago) |
---|
-
src/wp-includes/class-wp-editor.php
1065 1065 'Close' => __( 'Close' ), 1066 1066 'Visual aids' => __( 'Visual aids' ), 1067 1067 1068 'Bullet list'=> array( __( 'Bulleted list' ), 'accessU' ),1068 'Bulleted list' => array( __( 'Bulleted list' ), 'accessU' ), 1069 1069 'Numbered list' => array( __( 'Numbered list' ), 'accessO' ), 1070 1070 'Square' => _x( 'Square', 'list style' ), 1071 1071 'Default' => _x( 'Default', 'list style' ), … … 1141 1141 // Link plugin 1142 1142 'Link' => __( 'Link' ), 1143 1143 'Insert link' => __( 'Insert link' ), 1144 'Insert/edit link' => __( 'Insert/edit link' ),1144 'Insert/edit link' => array( __( 'Insert/edit link' ), 'metaK' ), 1145 1145 'Target' => __( 'Target' ), 1146 1146 'New window' => __( 'New window' ), 1147 1147 'Text to display' => __( 'Text to display' ), -
src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
577 577 } ); 578 578 579 579 each( editor.theme.panel.find('button'), function( button ) { 580 /* 581 * The lists buttons don't have a `tooltip` property and at this point they're 582 * already translated. We need to add the property with the original English string. 583 */ 584 if ( button.settings.cmd === 'InsertOrderedList' ) { 585 button.settings.tooltip = 'Numbered list'; 586 } 587 588 if ( button.settings.cmd === 'InsertUnorderedList' ) { 589 button.settings.tooltip = 'Bulleted list'; 590 } 591 580 592 if ( button && button.settings.tooltip && labels.hasOwnProperty( button.settings.tooltip ) ) { 581 593 // Need to translate now. We are changing the string so it won't match and cannot be translated later. 582 594 button.settings.tooltip = editor.translate( button.settings.tooltip ) + ' (' + labels[ button.settings.tooltip ] + ')';