Make WordPress Core

Changeset 41908


Ignore:
Timestamp:
10/18/2017 05:14:58 PM (9 years ago)
Author:
SergeyBiryukov
Message:

I18N: Remove <code> tags from translatable strings in Core_Upgrader, Language_Pack_Upgrader, Plugin_Upgrader, Theme_Upgrader.

Props ramiy.
Fixes #41705.

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

Legend:

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

    r41289 r41908  
    3030                $this->strings['locked'] = __('Another update is currently in progress.');
    3131                $this->strings['no_package'] = __('Update package not available.');
    32                 $this->strings['downloading_package'] = __('Downloading update from <span class="code">%s</span>&#8230;');
     32                /* translators: %s: package URL */
     33                $this->strings['downloading_package'] = sprintf( __( 'Downloading update from %s&#8230;' ), '<span class="code">%s</span>' );
    3334                $this->strings['unpack_package'] = __('Unpacking the update&#8230;');
    3435                $this->strings['copy_failed'] = __('Could not copy files.');
  • trunk/src/wp-admin/includes/class-language-pack-upgrader.php

    r41289 r41908  
    113113                $this->strings['up_to_date'] = __( 'The translations are up to date.' );
    114114                $this->strings['no_package'] = __( 'Update package not available.' );
    115                 $this->strings['downloading_package'] = __( 'Downloading translation from <span class="code">%s</span>&#8230;' );
     115                /* translators: %s: package URL */
     116                $this->strings['downloading_package'] = sprintf( __( 'Downloading translation from %s&#8230;' ), '<span class="code">%s</span>' );
    116117                $this->strings['unpack_package'] = __( 'Unpacking the update&#8230;' );
    117118                $this->strings['process_failed'] = __( 'Translation update failed.' );
  • trunk/src/wp-admin/includes/class-plugin-upgrader.php

    r41289 r41908  
    4747                $this->strings['up_to_date'] = __('The plugin is at the latest version.');
    4848                $this->strings['no_package'] = __('Update package not available.');
    49                 $this->strings['downloading_package'] = __('Downloading update from <span class="code">%s</span>&#8230;');
     49                /* translators: %s: package URL */
     50                $this->strings['downloading_package'] = sprintf( __( 'Downloading update from %s&#8230;' ), '<span class="code">%s</span>' );
    5051                $this->strings['unpack_package'] = __('Unpacking the update&#8230;');
    5152                $this->strings['remove_old'] = __('Removing the old version of the plugin&#8230;');
     
    6364        public function install_strings() {
    6465                $this->strings['no_package'] = __('Installation package not available.');
    65                 $this->strings['downloading_package'] = __('Downloading installation package from <span class="code">%s</span>&#8230;');
     66                /* translators: %s: package URL */
     67                $this->strings['downloading_package'] = sprintf( __( 'Downloading installation package from %s&#8230;' ), '<span class="code">%s</span>' );
    6668                $this->strings['unpack_package'] = __('Unpacking the package&#8230;');
    6769                $this->strings['installing_package'] = __('Installing the plugin&#8230;');
  • trunk/src/wp-admin/includes/class-theme-upgrader.php

    r41289 r41908  
    4646                $this->strings['up_to_date'] = __('The theme is at the latest version.');
    4747                $this->strings['no_package'] = __('Update package not available.');
    48                 $this->strings['downloading_package'] = __('Downloading update from <span class="code">%s</span>&#8230;');
     48                /* translators: %s: package URL */
     49                $this->strings['downloading_package'] = sprintf( __( 'Downloading update from %s&#8230;' ), '<span class="code">%s</span>' );
    4950                $this->strings['unpack_package'] = __('Unpacking the update&#8230;');
    5051                $this->strings['remove_old'] = __('Removing the old version of the theme&#8230;');
     
    6162        public function install_strings() {
    6263                $this->strings['no_package'] = __('Installation package not available.');
    63                 $this->strings['downloading_package'] = __('Downloading installation package from <span class="code">%s</span>&#8230;');
     64                /* translators: %s: package URL */
     65                $this->strings['downloading_package'] = sprintf( __( 'Downloading installation package from %s&#8230;' ), '<span class="code">%s</span>' );
    6466                $this->strings['unpack_package'] = __('Unpacking the package&#8230;');
    6567                $this->strings['installing_package'] = __('Installing the theme&#8230;');
Note: See TracChangeset for help on using the changeset viewer.