Make WordPress Core

Ticket #43773: 43773.diff

File 43773.diff, 2.4 KB (added by afercia, 7 years ago)
  • src/wp-includes/class-wp-editor.php

     
    10651065                                'Close'                                => __( 'Close' ),
    10661066                                'Visual aids'                          => __( 'Visual aids' ),
    10671067
    1068                                 'Bullet list'                          => array( __( 'Bulleted list' ), 'accessU' ),
     1068                                'Bulleted list'                        => array( __( 'Bulleted list' ), 'accessU' ),
    10691069                                'Numbered list'                        => array( __( 'Numbered list' ), 'accessO' ),
    10701070                                'Square'                               => _x( 'Square', 'list style' ),
    10711071                                'Default'                              => _x( 'Default', 'list style' ),
     
    11411141                                // Link plugin
    11421142                                'Link'                                 => __( 'Link' ),
    11431143                                'Insert link'                          => __( 'Insert link' ),
    1144                                 'Insert/edit link'                     => __( 'Insert/edit link' ),
     1144                                'Insert/edit link'                     => array( __( 'Insert/edit link' ), 'metaK' ),
    11451145                                'Target'                               => __( 'Target' ),
    11461146                                'New window'                           => __( 'New window' ),
    11471147                                'Text to display'                      => __( 'Text to display' ),
  • src/wp-includes/js/tinymce/plugins/wordpress/plugin.js

     
    577577                        } );
    578578
    579579                        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
    580592                                if ( button && button.settings.tooltip && labels.hasOwnProperty( button.settings.tooltip ) ) {
    581593                                        // Need to translate now. We are changing the string so it won't match and cannot be translated later.
    582594                                        button.settings.tooltip = editor.translate( button.settings.tooltip ) + ' (' + labels[ button.settings.tooltip ] + ')';