Make WordPress Core

Changeset 55750


Ignore:
Timestamp:
05/11/2023 02:48:55 PM (12 months ago)
Author:
audrasjb
Message:

I18N: Replace "Roll back" with "Restore" in user facing strings.

The terms "roll back" and "rolled back" are used in user facing strings since [55720]. These termes are not that clear for novice users and may be difficult to translate in some locales. This changeset replaces "roll back" with "restore" and "rolled back" with "restored" or "not applied" depending of the context of the screen.

Follow-up to [55720].

Props kebbet, costdev, NekoJonez, audrasjb, SergeyBiryukov, davidbaumwald.
Fixes #58282.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-core-upgrader.php

    r53132 r55750  
    3535        $this->strings['copy_failed']           = __( 'Could not copy files.' );
    3636        $this->strings['copy_failed_space']     = __( 'Could not copy files. You may have run out of disk space.' );
    37         $this->strings['start_rollback']        = __( 'Attempting to roll back to previous version.' );
    38         $this->strings['rollback_was_required'] = __( 'Due to an error during updating, WordPress has rolled back to your previous version.' );
     37        $this->strings['start_rollback']        = __( 'Attempting to restore the previous version.' );
     38        $this->strings['rollback_was_required'] = __( 'Due to an error during updating, WordPress has been restored to your previous version.' );
    3939    }
    4040
  • trunk/src/wp-admin/includes/file.php

    r55703 r55750  
    311311                    printf(
    312312                        /* translators: 1: Line number, 2: File path. */
    313                         __( 'Your PHP code changes were rolled back due to an error on line %1$s of file %2$s. Please fix and try saving again.' ),
     313                        __( 'Your PHP code changes were not applied due to an error on line %1$s of file %2$s. Please fix and try saving again.' ),
    314314                        '{{ data.line }}',
    315315                        '{{ data.file }}'
Note: See TracChangeset for help on using the changeset viewer.