From de4bdd2850740f9ea8aecd18e89de884095827e3 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Thu, 11 May 2023 14:48:55 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@55750 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-core-upgrader.php | 4 ++-- src/wp-admin/includes/file.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/includes/class-core-upgrader.php b/src/wp-admin/includes/class-core-upgrader.php index f6b6dfaed1..8af4cbc98e 100644 --- a/src/wp-admin/includes/class-core-upgrader.php +++ b/src/wp-admin/includes/class-core-upgrader.php @@ -34,8 +34,8 @@ class Core_Upgrader extends WP_Upgrader { $this->strings['unpack_package'] = __( 'Unpacking the update…' ); $this->strings['copy_failed'] = __( 'Could not copy files.' ); $this->strings['copy_failed_space'] = __( 'Could not copy files. You may have run out of disk space.' ); - $this->strings['start_rollback'] = __( 'Attempting to roll back to previous version.' ); - $this->strings['rollback_was_required'] = __( 'Due to an error during updating, WordPress has rolled back to your previous version.' ); + $this->strings['start_rollback'] = __( 'Attempting to restore the previous version.' ); + $this->strings['rollback_was_required'] = __( 'Due to an error during updating, WordPress has been restored to your previous version.' ); } /** diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php index 99503239d1..8e2b41411f 100644 --- a/src/wp-admin/includes/file.php +++ b/src/wp-admin/includes/file.php @@ -310,7 +310,7 @@ function wp_print_file_editor_templates() {