Make WordPress Core

Changeset 48589


Ignore:
Timestamp:
07/23/2020 09:06:26 PM (6 years ago)
Author:
SergeyBiryukov
Message:

I18N: Further adjust some update/install strings for consistency.

Follow-up to [48568], [48569].

See #50708, #50714.

Location:
trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/wp/updates.js

    r48569 r48589  
    487487                errorMessage = sprintf(
    488488                        /* translators: %s: Error string for a failed update. */
    489                         __( 'Update Failed: %s' ),
     489                        __( 'Update failed: %s' ),
    490490                        response.errorMessage
    491491                );
     
    521521
    522522                        $card.find( '.update-now' )
    523                                 .text(  __( 'Update failed' ) )
     523                                .text(  __( 'Update failed.' ) )
    524524                                .removeClass( 'updating-message' );
    525525
     
    728728                                )
    729729                        )
    730                         .text( __( 'Installation failed' ) );
     730                        .text( __( 'Installation failed.' ) );
    731731
    732732                wp.a11y.speak( errorMessage, 'assertive' );
     
    11441144                        errorMessage = sprintf(
    11451145                                /* translators: %s: Error string for a failed update. */
    1146                                  __( 'Update Failed: %s' ),
     1146                                 __( 'Update failed: %s' ),
    11471147                                response.errorMessage
    11481148                        ),
     
    13651365                                )
    13661366                        )
    1367                         .text( __( 'Installation failed' ) );
     1367                        .text( __( 'Installation failed.' ) );
    13681368
    13691369                wp.a11y.speak( errorMessage, 'assertive' );
     
    18051805                        case 'update':
    18061806                                /* translators: %s: Error string for a failed update. */
    1807                                 errorMessage = __( 'Update Failed: %s' );
     1807                                errorMessage = __( 'Update failed: %s' );
    18081808                                break;
    18091809
     
    18391839                        .removeAttr( 'aria-label' )
    18401840                        .prop( 'disabled', true )
    1841                         .text( __( 'Update failed' ) );
     1841                        .text( __( 'Update failed.' ) );
    18421842
    18431843                $( '.updating-message:not(.button):not(.thickbox)' )
  • trunk/src/wp-admin/includes/ajax-actions.php

    r48569 r48589  
    42114211
    42124212        // An unhandled error occurred.
    4213         $status['errorMessage'] = __( 'Update failed' );
     4213        $status['errorMessage'] = __( 'Theme update failed.' );
    42144214        wp_send_json_error( $status );
    42154215}
  • trunk/src/wp-admin/includes/class-wp-automatic-updater.php

    r48568 r48589  
    387387                        // Core doesn't output this, so let's append it so we don't get confused.
    388388                        if ( is_wp_error( $upgrade_result ) ) {
    389                                 $skin->error( __( 'Installation failed' ), $upgrade_result );
     389                                $skin->error( __( 'Installation failed.' ), $upgrade_result );
    390390                        } else {
    391                                 $skin->feedback( __( 'WordPress updated successfully' ) );
     391                                $skin->feedback( __( 'WordPress updated successfully.' ) );
    392392                        }
    393393                }
  • trunk/src/wp-admin/includes/update-core.php

    r48344 r48589  
    14301430
    14311431        // See do_core_upgrade().
    1432         show_message( __( 'WordPress updated successfully' ) );
     1432        show_message( __( 'WordPress updated successfully.' ) );
    14331433
    14341434        // self_admin_url() won't exist when upgrading from <= 3.0, so relative URLs are intentional.
  • trunk/src/wp-admin/update-core.php

    r48568 r48589  
    647647                show_message( $result );
    648648                if ( 'up_to_date' != $result->get_error_code() && 'locked' != $result->get_error_code() ) {
    649                         show_message( __( 'Installation failed' ) );
     649                        show_message( __( 'Installation failed.' ) );
    650650                }
    651651                echo '</div>';
     
    653653        }
    654654
    655         show_message( __( 'WordPress updated successfully' ) );
     655        show_message( __( 'WordPress updated successfully.' ) );
    656656        show_message(
    657657                '<span class="hide-if-no-js">' . sprintf(
Note: See TracChangeset for help on using the changeset viewer.