From 8aaf0aa4bc102c1729b3addf3476e3122cd7b506 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 18 Oct 2017 17:14:58 +0000 Subject: [PATCH] I18N: Remove `` tags from translatable strings in `Core_Upgrader`, `Language_Pack_Upgrader`, `Plugin_Upgrader`, `Theme_Upgrader`. Props ramiy. Fixes #41705. git-svn-id: https://develop.svn.wordpress.org/trunk@41908 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-core-upgrader.php | 3 ++- src/wp-admin/includes/class-language-pack-upgrader.php | 3 ++- src/wp-admin/includes/class-plugin-upgrader.php | 6 ++++-- src/wp-admin/includes/class-theme-upgrader.php | 6 ++++-- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/wp-admin/includes/class-core-upgrader.php b/src/wp-admin/includes/class-core-upgrader.php index dfd6404616..195e5885e5 100644 --- a/src/wp-admin/includes/class-core-upgrader.php +++ b/src/wp-admin/includes/class-core-upgrader.php @@ -29,7 +29,8 @@ class Core_Upgrader extends WP_Upgrader { $this->strings['up_to_date'] = __('WordPress is at the latest version.'); $this->strings['locked'] = __('Another update is currently in progress.'); $this->strings['no_package'] = __('Update package not available.'); - $this->strings['downloading_package'] = __('Downloading update from %s…'); + /* translators: %s: package URL */ + $this->strings['downloading_package'] = sprintf( __( 'Downloading update from %s…' ), '%s' ); $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.' ); diff --git a/src/wp-admin/includes/class-language-pack-upgrader.php b/src/wp-admin/includes/class-language-pack-upgrader.php index ee98cf79db..404c4a2771 100644 --- a/src/wp-admin/includes/class-language-pack-upgrader.php +++ b/src/wp-admin/includes/class-language-pack-upgrader.php @@ -112,7 +112,8 @@ class Language_Pack_Upgrader extends WP_Upgrader { $this->strings['starting_upgrade'] = __( 'Some of your translations need updating. Sit tight for a few more seconds while we update them as well.' ); $this->strings['up_to_date'] = __( 'The translations are up to date.' ); $this->strings['no_package'] = __( 'Update package not available.' ); - $this->strings['downloading_package'] = __( 'Downloading translation from %s…' ); + /* translators: %s: package URL */ + $this->strings['downloading_package'] = sprintf( __( 'Downloading translation from %s…' ), '%s' ); $this->strings['unpack_package'] = __( 'Unpacking the update…' ); $this->strings['process_failed'] = __( 'Translation update failed.' ); $this->strings['process_success'] = __( 'Translation updated successfully.' ); diff --git a/src/wp-admin/includes/class-plugin-upgrader.php b/src/wp-admin/includes/class-plugin-upgrader.php index 969a5b4ff7..3c05353bc1 100644 --- a/src/wp-admin/includes/class-plugin-upgrader.php +++ b/src/wp-admin/includes/class-plugin-upgrader.php @@ -46,7 +46,8 @@ class Plugin_Upgrader extends WP_Upgrader { public function upgrade_strings() { $this->strings['up_to_date'] = __('The plugin is at the latest version.'); $this->strings['no_package'] = __('Update package not available.'); - $this->strings['downloading_package'] = __('Downloading update from %s…'); + /* translators: %s: package URL */ + $this->strings['downloading_package'] = sprintf( __( 'Downloading update from %s…' ), '%s' ); $this->strings['unpack_package'] = __('Unpacking the update…'); $this->strings['remove_old'] = __('Removing the old version of the plugin…'); $this->strings['remove_old_failed'] = __('Could not remove the old plugin.'); @@ -62,7 +63,8 @@ class Plugin_Upgrader extends WP_Upgrader { */ public function install_strings() { $this->strings['no_package'] = __('Installation package not available.'); - $this->strings['downloading_package'] = __('Downloading installation package from %s…'); + /* translators: %s: package URL */ + $this->strings['downloading_package'] = sprintf( __( 'Downloading installation package from %s…' ), '%s' ); $this->strings['unpack_package'] = __('Unpacking the package…'); $this->strings['installing_package'] = __('Installing the plugin…'); $this->strings['no_files'] = __('The plugin contains no files.'); diff --git a/src/wp-admin/includes/class-theme-upgrader.php b/src/wp-admin/includes/class-theme-upgrader.php index 6515698052..bb3e47d661 100644 --- a/src/wp-admin/includes/class-theme-upgrader.php +++ b/src/wp-admin/includes/class-theme-upgrader.php @@ -45,7 +45,8 @@ class Theme_Upgrader extends WP_Upgrader { public function upgrade_strings() { $this->strings['up_to_date'] = __('The theme is at the latest version.'); $this->strings['no_package'] = __('Update package not available.'); - $this->strings['downloading_package'] = __('Downloading update from %s…'); + /* translators: %s: package URL */ + $this->strings['downloading_package'] = sprintf( __( 'Downloading update from %s…' ), '%s' ); $this->strings['unpack_package'] = __('Unpacking the update…'); $this->strings['remove_old'] = __('Removing the old version of the theme…'); $this->strings['remove_old_failed'] = __('Could not remove the old theme.'); @@ -60,7 +61,8 @@ class Theme_Upgrader extends WP_Upgrader { */ public function install_strings() { $this->strings['no_package'] = __('Installation package not available.'); - $this->strings['downloading_package'] = __('Downloading installation package from %s…'); + /* translators: %s: package URL */ + $this->strings['downloading_package'] = sprintf( __( 'Downloading installation package from %s…' ), '%s' ); $this->strings['unpack_package'] = __('Unpacking the package…'); $this->strings['installing_package'] = __('Installing the theme…'); $this->strings['no_files'] = __('The theme contains no files.');