Make WordPress Core

Ticket #29022: 29022.9.diff

File 29022.9.diff, 1013 bytes (added by sabernhardt, 2 years ago)
  • src/js/_enqueues/wp/updates.js

     
    3333        var $document = $( document ),
    3434                __ = wp.i18n.__,
    3535                _x = wp.i18n._x,
     36                _n = wp.i18n._n,
    3637                sprintf = wp.i18n.sprintf;
    3738
    3839        wp = wp || {};
     
    352353                        $appearanceNavMenuUpdateCount = $( 'a[href="themes.php"] .update-plugins' ),
    353354                        itemCount;
    354355
    355                 $adminBarUpdates.find( '.ab-item' ).removeAttr( 'title' );
    356356                $adminBarUpdates.find( '.ab-label' ).text( settings.totals.counts.total );
     357                $adminBarUpdates.find( '.updates-available-text' ).text(
     358                        sprintf(
     359                                /* translators: %s: Total number of updates available. */
     360                                _n( '%s update available', '%s updates available', settings.totals.counts.total ),
     361                                settings.totals.counts.total
     362                        )
     363                );
    357364
    358365                // Remove the update count from the toolbar if it's zero.
    359366                if ( 0 === settings.totals.counts.total ) {