From b161e126a0a4231a35d18c4e1a98258f494de772 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 12 Jul 2020 10:32:57 +0000 Subject: [PATCH] I18N: Move the "WordPress Backups" support URL to its own translatable string. Follow-up to [48390]. See #9757. git-svn-id: https://develop.svn.wordpress.org/trunk@48447 602fd350-edb4-49c9-b593-d223f7449a82 --- .../includes/class-plugin-installer-skin.php | 12 ++++++++++-- src/wp-admin/includes/class-theme-installer-skin.php | 12 ++++++++++-- src/wp-admin/update-core.php | 7 ++++++- 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/src/wp-admin/includes/class-plugin-installer-skin.php b/src/wp-admin/includes/class-plugin-installer-skin.php index c23b51e7f3..59853c47d3 100644 --- a/src/wp-admin/includes/class-plugin-installer-skin.php +++ b/src/wp-admin/includes/class-plugin-installer-skin.php @@ -282,9 +282,17 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin { if ( $can_update ) { if ( $this->is_downgrading ) { - $warning = __( 'You are uploading an older version of a current plugin. You can continue to install the older version, but be sure to backup your database and files first.' ); + $warning = sprintf( + /* translators: %s: Documentation URL. */ + __( 'You are uploading an older version of a current plugin. You can continue to install the older version, but be sure to back up your database and files first.' ), + __( 'https://wordpress.org/support/article/wordpress-backups/' ) + ); } else { - $warning = __( 'You are updating a plugin. Be sure to backup your database and files first.' ); + $warning = sprintf( + /* translators: %s: Documentation URL. */ + __( 'You are updating a plugin. Be sure to back up your database and files first.' ), + __( 'https://wordpress.org/support/article/wordpress-backups/' ) + ); } echo '

' . $warning . '

'; diff --git a/src/wp-admin/includes/class-theme-installer-skin.php b/src/wp-admin/includes/class-theme-installer-skin.php index 04693a879b..6850e8bbb2 100644 --- a/src/wp-admin/includes/class-theme-installer-skin.php +++ b/src/wp-admin/includes/class-theme-installer-skin.php @@ -311,9 +311,17 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin { if ( $can_update ) { if ( $this->is_downgrading ) { - $warning = __( 'You are uploading an older version of a current theme. You can continue to install the older version, but be sure to backup your database and files first.' ); + $warning = sprintf( + /* translators: %s: Documentation URL. */ + __( 'You are uploading an older version of a current theme. You can continue to install the older version, but be sure to back up your database and files first.' ), + __( 'https://wordpress.org/support/article/wordpress-backups/' ) + ); } else { - $warning = __( 'You are updating a theme. Be sure to backup your database and files first.' ); + $warning = sprintf( + /* translators: %s: Documentation URL. */ + __( 'You are updating a theme. Be sure to back up your database and files first.' ), + __( 'https://wordpress.org/support/article/wordpress-backups/' ) + ); } echo '

' . $warning . '

'; diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php index 57b1619150..c4a7fb0e54 100644 --- a/src/wp-admin/update-core.php +++ b/src/wp-admin/update-core.php @@ -247,7 +247,12 @@ function core_upgrade_preamble() { if ( isset( $updates[0]->version ) && version_compare( $updates[0]->version, $wp_version, '>' ) ) { echo '

'; - _e( 'Important: Before updating, please back up your database and files. For help with updates, visit the Updating WordPress documentation page.' ); + printf( + /* translators: 1: Documentation on WordPress backups, 2: Documentation on updating WordPress. */ + __( 'Important: Before updating, please back up your database and files. For help with updates, visit the Updating WordPress documentation page.' ), + __( 'https://wordpress.org/support/article/wordpress-backups/' ), + __( 'https://wordpress.org/support/article/updating-wordpress/' ) + ); echo '

'; echo '

';