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
This commit is contained in:
Sergey Biryukov 2020-07-23 21:06:26 +00:00
parent 098fc4bc89
commit 1120269124
5 changed files with 13 additions and 13 deletions

View File

@ -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' )

View File

@ -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 );
}

View File

@ -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.' ) );
}
}

View File

@ -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(

View File

@ -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 '</div>';
return;
}
show_message( __( 'WordPress updated successfully' ) );
show_message( __( 'WordPress updated successfully.' ) );
show_message(
'<span class="hide-if-no-js">' . sprintf(
/* translators: 1: WordPress version, 2: URL to About screen. */