Make WordPress Core

Ticket #48244: 48244.5.patch

File 48244.5.patch, 1.6 KB (added by shaharia.azam, 7 years ago)

As per @swissspidy on slack, _n implemented on plugin.js & tags-suggest.js

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

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    136136                                noResults: window.uiAutocompleteL10n.noResults,
    137137                                results: function( number ) {
    138138                                        if ( number > 1 ) {
    139                                                 return window.uiAutocompleteL10n.manyResults.replace( '%d', number );
     139                                                return _n( '%d results found. Use up and down arrow keys to navigate.' );
    140140                                        }
    141141
    142                                         return window.uiAutocompleteL10n.oneResult;
     142                                        return _n( '%d result found. Use up and down arrow keys to navigate.' );
    143143                                }
    144144                        }
    145145                }, options );
  • src/js/_enqueues/vendor/tinymce/plugins/wplink/plugin.js

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    461461                                                        results: function( number ) {
    462462                                                                if ( typeof window.uiAutocompleteL10n !== 'undefined' ) {
    463463                                                                        if ( number > 1 ) {
    464                                                                                 return window.uiAutocompleteL10n.manyResults.replace( '%d', number );
     464                                                                                return _n( '%d results found. Use up and down arrow keys to navigate.' );
    465465                                                                        }
    466466
    467                                                                         return window.uiAutocompleteL10n.oneResult;
     467                                                                        return _n( '%d result found. Use up and down arrow keys to navigate.' );
    468468                                                                }
    469469                                                        }
    470470                                                }