Make WordPress Core

Ticket #48244: 48244.5.diff

File 48244.5.diff, 2.1 KB (added by shaampk1, 7 years ago)

Merged plugin.js, tags-suggest.js, and script-loader.php patches into one .diff file

  • src/js/_enqueues/admin/tags-suggest.js

     
    136136                                noResults: window.uiAutocompleteL10n.noResults,
    137137                                results: function( number ) {
    138138                                        if ( number > 1 ) {
    139                                                 return window.uiAutocompleteL10n.manyResults.replace( '%d', number );
     139                                                return window.uiAutocompleteL10n.manyResults;
    140140                                        }
    141141
    142142                                        return window.uiAutocompleteL10n.oneResult;
  • src/js/_enqueues/vendor/tinymce/plugins/wplink/plugin.js

     
    461461                                                        results: function( number ) {
    462462                                                                if ( typeof window.uiAutocompleteL10n !== 'undefined' ) {
    463463                                                                        if ( number > 1 ) {
    464                                                                                 return window.uiAutocompleteL10n.manyResults.replace( '%d', number );
     464                                                                                return window.uiAutocompleteL10n.manyResults;
    465465                                                                        }
    466466
    467467                                                                        return window.uiAutocompleteL10n.oneResult;
  • src/wp-includes/script-loader.php

     
    11721172                'uiAutocompleteL10n',
    11731173                array(
    11741174                        'noResults'    => __( 'No results found.' ),
    1175                         /* translators: Number of results found when using jQuery UI Autocomplete. */
    1176                         'oneResult'    => __( '1 result found. Use up and down arrow keys to navigate.' ),
    11771175                        /* translators: %d: Number of results found when using jQuery UI Autocomplete. */
    1178                         'manyResults'  => __( '%d results found. Use up and down arrow keys to navigate.' ),
     1176                        'manyResults' => _n( '%d result found. Use up and down arrow keys to navigate.', '%d results found. Use up and down arrow keys to navigate.', did_action( 'init' ) ),
    11791177                        'itemSelected' => __( 'Item selected.' ),
    11801178                )
    11811179        );