Make WordPress Core

Changeset 55899


Ignore:
Timestamp:
06/08/2023 02:16:48 PM (22 months ago)
Author:
audrasjb
Message:

Upgrade/Install: Improve WP_Upgrader strings rendering on small screens.

This changeset adds a pre class to "Downloading update from…" user facing strings located in Core_Upgrader, Language_Pack_Upgrader, Plugin_Upgrader and
Theme_Upgrader classes.

Follow-up to [11295].

Props sumitsingh, costdev.
Fixes #58477.

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

Legend:

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

    r55750 r55899  
    3131        $this->strings['no_package'] = __( 'Update package not available.' );
    3232        /* translators: %s: Package URL. */
    33         $this->strings['downloading_package']   = sprintf( __( 'Downloading update from %s&#8230;' ), '<span class="code">%s</span>' );
     33        $this->strings['downloading_package']   = sprintf( __( 'Downloading update from %s&#8230;' ), '<span class="code pre">%s</span>' );
    3434        $this->strings['unpack_package']        = __( 'Unpacking the update&#8230;' );
    3535        $this->strings['copy_failed']           = __( 'Could not copy files.' );
  • trunk/src/wp-admin/includes/class-language-pack-upgrader.php

    r54891 r55899  
    115115        $this->strings['no_package']       = __( 'Update package not available.' );
    116116        /* translators: %s: Package URL. */
    117         $this->strings['downloading_package'] = sprintf( __( 'Downloading translation from %s&#8230;' ), '<span class="code">%s</span>' );
     117        $this->strings['downloading_package'] = sprintf( __( 'Downloading translation from %s&#8230;' ), '<span class="code pre">%s</span>' );
    118118        $this->strings['unpack_package']      = __( 'Unpacking the update&#8230;' );
    119119        $this->strings['process_failed']      = __( 'Translation update failed.' );
  • trunk/src/wp-admin/includes/class-plugin-upgrader.php

    r55824 r55899  
    5858        $this->strings['no_package'] = __( 'Update package not available.' );
    5959        /* translators: %s: Package URL. */
    60         $this->strings['downloading_package']  = sprintf( __( 'Downloading update from %s&#8230;' ), '<span class="code">%s</span>' );
     60        $this->strings['downloading_package']  = sprintf( __( 'Downloading update from %s&#8230;' ), '<span class="code pre">%s</span>' );
    6161        $this->strings['unpack_package']       = __( 'Unpacking the update&#8230;' );
    6262        $this->strings['remove_old']           = __( 'Removing the old version of the plugin&#8230;' );
     
    7575        $this->strings['no_package'] = __( 'Installation package not available.' );
    7676        /* translators: %s: Package URL. */
    77         $this->strings['downloading_package'] = sprintf( __( 'Downloading installation package from %s&#8230;' ), '<span class="code">%s</span>' );
     77        $this->strings['downloading_package'] = sprintf( __( 'Downloading installation package from %s&#8230;' ), '<span class="code pre">%s</span>' );
    7878        $this->strings['unpack_package']      = __( 'Unpacking the package&#8230;' );
    7979        $this->strings['installing_package']  = __( 'Installing the plugin&#8230;' );
  • trunk/src/wp-admin/includes/class-theme-upgrader.php

    r55824 r55899  
    5757        $this->strings['no_package'] = __( 'Update package not available.' );
    5858        /* translators: %s: Package URL. */
    59         $this->strings['downloading_package'] = sprintf( __( 'Downloading update from %s&#8230;' ), '<span class="code">%s</span>' );
     59        $this->strings['downloading_package'] = sprintf( __( 'Downloading update from %s&#8230;' ), '<span class="code pre">%s</span>' );
    6060        $this->strings['unpack_package']      = __( 'Unpacking the update&#8230;' );
    6161        $this->strings['remove_old']          = __( 'Removing the old version of the theme&#8230;' );
     
    7373        $this->strings['no_package'] = __( 'Installation package not available.' );
    7474        /* translators: %s: Package URL. */
    75         $this->strings['downloading_package'] = sprintf( __( 'Downloading installation package from %s&#8230;' ), '<span class="code">%s</span>' );
     75        $this->strings['downloading_package'] = sprintf( __( 'Downloading installation package from %s&#8230;' ), '<span class="code pre">%s</span>' );
    7676        $this->strings['unpack_package']      = __( 'Unpacking the package&#8230;' );
    7777        $this->strings['installing_package']  = __( 'Installing the theme&#8230;' );
Note: See TracChangeset for help on using the changeset viewer.