Ticket #29022: 29022.9.diff
File 29022.9.diff, 1013 bytes (added by , 2 years ago) |
---|
-
src/js/_enqueues/wp/updates.js
33 33 var $document = $( document ), 34 34 __ = wp.i18n.__, 35 35 _x = wp.i18n._x, 36 _n = wp.i18n._n, 36 37 sprintf = wp.i18n.sprintf; 37 38 38 39 wp = wp || {}; … … 352 353 $appearanceNavMenuUpdateCount = $( 'a[href="themes.php"] .update-plugins' ), 353 354 itemCount; 354 355 355 $adminBarUpdates.find( '.ab-item' ).removeAttr( 'title' );356 356 $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 ); 357 364 358 365 // Remove the update count from the toolbar if it's zero. 359 366 if ( 0 === settings.totals.counts.total ) {