Changeset 40034
- Timestamp:
- 01/31/2017 09:26:52 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/updates.js
r40025 r40034 372 372 $updateRow = $( 'tr[data-plugin="' + args.plugin + '"]' ); 373 373 $message = $updateRow.find( '.update-message' ).removeClass( 'notice-error' ).addClass( 'updating-message notice-warning' ).find( 'p' ); 374 message = wp.updates.l10n. updatingLabel.replace( '%s', $updateRow.find( '.plugin-title strong' ).text() );374 message = wp.updates.l10n.pluginUpdatingLabel.replace( '%s', $updateRow.find( '.plugin-title strong' ).text() ); 375 375 } else if ( 'plugin-install' === pagenow || 'plugin-install-network' === pagenow ) { 376 376 $card = $( '.plugin-card-' + args.slug ); 377 377 $message = $card.find( '.update-now' ).addClass( 'updating-message' ); 378 message = wp.updates.l10n. updatingLabel.replace( '%s', $message.data( 'name' ) );378 message = wp.updates.l10n.pluginUpdatingLabel.replace( '%s', $message.data( 'name' ) ); 379 379 380 380 // Remove previous error messages, if any. … … 430 430 431 431 $updateMessage 432 .attr( 'aria-label', wp.updates.l10n. updatedLabel.replace( '%s', response.pluginName ) )433 .text( wp.updates.l10n. updated );432 .attr( 'aria-label', wp.updates.l10n.pluginUpdatedLabel.replace( '%s', response.pluginName ) ) 433 .text( wp.updates.l10n.pluginUpdated ); 434 434 435 435 wp.a11y.speak( wp.updates.l10n.updatedMsg, 'polite' ); … … 477 477 if ( response.pluginName ) { 478 478 $message.find( 'p' ) 479 .attr( 'aria-label', wp.updates.l10n. updateFailedLabel.replace( '%s', response.pluginName ) );479 .attr( 'aria-label', wp.updates.l10n.pluginUpdateFailedLabel.replace( '%s', response.pluginName ) ); 480 480 } else { 481 481 $message.find( 'p' ).removeAttr( 'aria-label' ); … … 494 494 if ( response.pluginName ) { 495 495 $card.find( '.update-now' ) 496 .attr( 'aria-label', wp.updates.l10n. updateFailedLabel.replace( '%s', response.pluginName ) );496 .attr( 'aria-label', wp.updates.l10n.pluginUpdateFailedLabel.replace( '%s', response.pluginName ) ); 497 497 } else { 498 498 $card.find( '.update-now' ).removeAttr( 'aria-label' ); … … 581 581 .addClass( 'updated-message installed button-disabled' ) 582 582 .attr( 'aria-label', wp.updates.l10n.pluginInstalledLabel.replace( '%s', response.pluginName ) ) 583 .text( wp.updates.l10n. installed );583 .text( wp.updates.l10n.pluginInstalled ); 584 584 585 585 wp.a11y.speak( wp.updates.l10n.installedMsg, 'polite' ); … … 966 966 updatedMessage = { 967 967 className: 'updated-message notice-success notice-alt', 968 message: wp.updates.l10n. updated968 message: wp.updates.l10n.themeUpdated 969 969 }, 970 970 $notice, newText; … … 1103 1103 .addClass( 'updated-message disabled' ) 1104 1104 .attr( 'aria-label', wp.updates.l10n.themeInstalledLabel.replace( '%s', response.themeName ) ) 1105 .text( wp.updates.l10n. installed );1105 .text( wp.updates.l10n.themeInstalled ); 1106 1106 1107 1107 wp.a11y.speak( wp.updates.l10n.installedMsg, 'polite' ); … … 1777 1777 if ( 'plugin-install' === pagenow || 'plugin-install-network' === pagenow ) { 1778 1778 if ( 'update-plugin' === job.action ) { 1779 $message.attr( 'aria-label', wp.updates.l10n. updateNowLabel.replace( '%s', $message.data( 'name' ) ) );1779 $message.attr( 'aria-label', wp.updates.l10n.pluginUpdateNowLabel.replace( '%s', $message.data( 'name' ) ) ); 1780 1780 } else if ( 'install-plugin' === job.action ) { 1781 $message.attr( 'aria-label', wp.updates.l10n. installNowLabel.replace( '%s', $message.data( 'name' ) ) );1781 $message.attr( 'aria-label', wp.updates.l10n.pluginInstallNowLabel.replace( '%s', $message.data( 'name' ) ) ); 1782 1782 } 1783 1783 } -
trunk/src/wp-includes/script-loader.php
r40033 r40034 638 638 'noItemsSelected' => __( 'Please select at least one item to perform this action on.' ), 639 639 'updating' => __( 'Updating...' ), // No ellipsis. 640 'updated' => __( 'Updated!' ), 640 'pluginUpdated' => _x( 'Updated!', 'plugin' ), 641 'themeUpdated' => _x( 'Updated!', 'theme' ), 641 642 'update' => __( 'Update' ), 642 643 'updateNow' => __( 'Update Now' ), 643 644 /* translators: %s: Plugin name and version */ 644 ' updateNowLabel' => __( 'Update %s now' ),645 'pluginUpdateNowLabel' => _x( 'Update %s now', 'plugin' ), 645 646 'updateFailedShort' => __( 'Update Failed!' ), 646 647 /* translators: %s: Error string for a failed update */ 647 648 'updateFailed' => __( 'Update Failed: %s' ), 648 649 /* translators: %s: Plugin name and version */ 649 ' updatingLabel' => __( 'Updating %s...' ), // No ellipsis.650 'pluginUpdatingLabel' => _x( 'Updating %s...', 'plugin' ), // No ellipsis. 650 651 /* translators: %s: Plugin name and version */ 651 ' updatedLabel' => __( '%s updated!' ),652 'pluginUpdatedLabel' => _x( '%s updated!', 'plugin' ), 652 653 /* translators: %s: Plugin name and version */ 653 ' updateFailedLabel' => __( '%s update failed' ),654 'pluginUpdateFailedLabel' => _x( '%s update failed', 'plugin' ), 654 655 /* translators: Accessibility text */ 655 656 'updatingMsg' => __( 'Updating... please wait.' ), // No ellipsis. … … 661 662 'installNow' => __( 'Install Now' ), 662 663 /* translators: %s: Plugin name */ 663 ' installNowLabel' => __( 'Install %s now' ),664 'pluginInstallNowLabel' => _x( 'Install %s now', 'plugin' ), 664 665 'installing' => __( 'Installing...' ), 665 'installed' => __( 'Installed!' ), 666 'pluginInstalled' => _x( 'Installed!', 'plugin' ), 667 'themeInstalled' => _x( 'Installed!', 'theme' ), 666 668 'installFailedShort' => __( 'Install Failed!' ), 667 669 /* translators: %s: Error string for a failed installation */ -
trunk/tests/qunit/fixtures/updates.js
r38221 r40034 7 7 'noItemsSelected': 'Please select at least one item to perform this action on.', 8 8 'updating': 'Updating...', 9 'updated': 'Updated!', 9 'pluginUpdated': 'Updated!', 10 'themeUpdated': 'Updated!', 10 11 'update': 'Update', 11 12 'updateNow': 'Update Now', 12 ' updateNowLabel': 'Update %s now',13 'pluginUpdateNowLabel': 'Update %s now', 13 14 'updateFailedShort': 'Update Failed!', 14 15 'updateFailed': 'Update Failed: %s', 15 ' updatingLabel': 'Updating %s...',16 ' updatedLabel': '%s updated!',17 ' updateFailedLabel': '%s update failed',16 'pluginUpdatingLabel': 'Updating %s...', 17 'pluginUpdatedLabel': '%s updated!', 18 'pluginUpdateFailedLabel': '%s update failed', 18 19 'updatingMsg': 'Updating... please wait.', 19 20 'updatedMsg': 'Update completed successfully.', … … 21 22 'beforeunload': 'Updates may not complete if you navigate away from this page.', 22 23 'installNow': 'Install Now', 23 ' installNowLabel': 'Install %s now',24 'pluginInstallNowLabel': 'Install %s now', 24 25 'installing': 'Installing...', 25 'installed': 'Installed!', 26 'pluginInstalled': 'Installed!', 27 'themeInstalled': 'Installed!', 26 28 'installFailedShort': 'Install Failed!', 27 29 'installFailed': 'Installation failed: %s',
Note: See TracChangeset
for help on using the changeset viewer.