From 11202691248547a45c803bc9ed78ca8db07f2383 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 23 Jul 2020 21:06:26 +0000 Subject: [PATCH] I18N: Further adjust some update/install strings for consistency. Follow-up to [48568], [48569]. See #50708, #50714. git-svn-id: https://develop.svn.wordpress.org/trunk@48589 602fd350-edb4-49c9-b593-d223f7449a82 --- src/js/_enqueues/wp/updates.js | 14 +++++++------- src/wp-admin/includes/ajax-actions.php | 2 +- .../includes/class-wp-automatic-updater.php | 4 ++-- src/wp-admin/includes/update-core.php | 2 +- src/wp-admin/update-core.php | 4 ++-- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/js/_enqueues/wp/updates.js b/src/js/_enqueues/wp/updates.js index a7c2d8e060..db626d38c7 100644 --- a/src/js/_enqueues/wp/updates.js +++ b/src/js/_enqueues/wp/updates.js @@ -486,7 +486,7 @@ errorMessage = sprintf( /* translators: %s: Error string for a failed update. */ - __( 'Update Failed: %s' ), + __( 'Update failed: %s' ), response.errorMessage ); @@ -520,7 +520,7 @@ } ) ); $card.find( '.update-now' ) - .text( __( 'Update failed' ) ) + .text( __( 'Update failed.' ) ) .removeClass( 'updating-message' ); if ( response.pluginName ) { @@ -727,7 +727,7 @@ $button.data( 'name' ) ) ) - .text( __( 'Installation failed' ) ); + .text( __( 'Installation failed.' ) ); wp.a11y.speak( errorMessage, 'assertive' ); @@ -1143,7 +1143,7 @@ var $theme = $( '[data-slug="' + response.slug + '"]' ), errorMessage = sprintf( /* translators: %s: Error string for a failed update. */ - __( 'Update Failed: %s' ), + __( 'Update failed: %s' ), response.errorMessage ), $notice; @@ -1364,7 +1364,7 @@ $button.data( 'name' ) ) ) - .text( __( 'Installation failed' ) ); + .text( __( 'Installation failed.' ) ); wp.a11y.speak( errorMessage, 'assertive' ); @@ -1804,7 +1804,7 @@ switch ( action ) { case 'update': /* translators: %s: Error string for a failed update. */ - errorMessage = __( 'Update Failed: %s' ); + errorMessage = __( 'Update failed: %s' ); break; case 'install': @@ -1838,7 +1838,7 @@ .removeClass( 'updating-message' ) .removeAttr( 'aria-label' ) .prop( 'disabled', true ) - .text( __( 'Update failed' ) ); + .text( __( 'Update failed.' ) ); $( '.updating-message:not(.button):not(.thickbox)' ) .removeClass( 'updating-message notice-warning' ) diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php index 03a8036e37..85996d2676 100644 --- a/src/wp-admin/includes/ajax-actions.php +++ b/src/wp-admin/includes/ajax-actions.php @@ -4210,7 +4210,7 @@ function wp_ajax_update_theme() { } // An unhandled error occurred. - $status['errorMessage'] = __( 'Update failed' ); + $status['errorMessage'] = __( 'Theme update failed.' ); wp_send_json_error( $status ); } diff --git a/src/wp-admin/includes/class-wp-automatic-updater.php b/src/wp-admin/includes/class-wp-automatic-updater.php index f8c6fd4225..e941f72faf 100644 --- a/src/wp-admin/includes/class-wp-automatic-updater.php +++ b/src/wp-admin/includes/class-wp-automatic-updater.php @@ -386,9 +386,9 @@ class WP_Automatic_Updater { // Core doesn't output this, so let's append it so we don't get confused. if ( is_wp_error( $upgrade_result ) ) { - $skin->error( __( 'Installation failed' ), $upgrade_result ); + $skin->error( __( 'Installation failed.' ), $upgrade_result ); } else { - $skin->feedback( __( 'WordPress updated successfully' ) ); + $skin->feedback( __( 'WordPress updated successfully.' ) ); } } diff --git a/src/wp-admin/includes/update-core.php b/src/wp-admin/includes/update-core.php index aa5ee5dcd1..27599cc192 100644 --- a/src/wp-admin/includes/update-core.php +++ b/src/wp-admin/includes/update-core.php @@ -1429,7 +1429,7 @@ function _redirect_to_about_wordpress( $new_version ) { load_default_textdomain(); // See do_core_upgrade(). - show_message( __( 'WordPress updated successfully' ) ); + show_message( __( 'WordPress updated successfully.' ) ); // self_admin_url() won't exist when upgrading from <= 3.0, so relative URLs are intentional. show_message( diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php index a50d4623c7..dc4b9b40a2 100644 --- a/src/wp-admin/update-core.php +++ b/src/wp-admin/update-core.php @@ -646,13 +646,13 @@ function do_core_upgrade( $reinstall = false ) { if ( is_wp_error( $result ) ) { show_message( $result ); if ( 'up_to_date' != $result->get_error_code() && 'locked' != $result->get_error_code() ) { - show_message( __( 'Installation failed' ) ); + show_message( __( 'Installation failed.' ) ); } echo ''; return; } - show_message( __( 'WordPress updated successfully' ) ); + show_message( __( 'WordPress updated successfully.' ) ); show_message( '' . sprintf( /* translators: 1: WordPress version, 2: URL to About screen. */