Make WordPress Core


Ignore:
Timestamp:
07/17/2016 03:31:29 PM (8 years ago)
Author:
ocean90
Message:

Import: Enhance accessibility on the Import screen.

  • Remove title attributes.
  • Show "Install Now" and "Details" links if the importer isn't installed yet.
  • Show a "Run Importer" link if the importer is installed. It also handles activation if the plugin isn't activated.
  • Add aria-label attributes to each link.
  • Unify the importer descriptions to make them independent from the plugin state. The API was changed in [meta3690].
  • Adjust JavaScript callbacks for ajaxified importer installs.

Props afercia, swissspidy, ocean90.
See #24766.
Fixes #35191.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r38070 r38075  
    608608                'updateNow'                  => __( 'Update Now' ),
    609609                'updateFailedShort'          => __( 'Update Failed!' ),
    610                 /* translators: Error string for a failed update */
     610                /* translators: %s: Error string for a failed update */
    611611                'updateFailed'               => __( 'Update Failed: %s' ),
    612                 /* translators: Plugin name and version */
     612                /* translators: %s: Plugin name and version */
    613613                'updatingLabel'              => __( 'Updating %s...' ), // No ellipsis.
    614                 /* translators: Plugin name and version */
     614                /* translators: %s: Plugin name and version */
    615615                'updatedLabel'               => __( '%s updated!' ),
    616                 /* translators: Plugin name and version */
     616                /* translators: %s: Plugin name and version */
    617617                'updateFailedLabel'          => __( '%s update failed' ),
    618618                /* translators: JavaScript accessible string */
     
    624624                'beforeunload'               => __( 'Updates may not complete if you navigate away from this page.' ),
    625625                'installNow'                 => __( 'Install Now' ),
     626                /* translators: %s: Plugin name */
     627                'installNowLabel'            => __( 'Install %s' ),
    626628                'installing'                 => __( 'Installing...' ),
    627629                'installed'                  => __( 'Installed!' ),
    628630                'installFailedShort'         => __( 'Install Failed!' ),
    629                 /* translators: Error string for a failed installation */
     631                /* translators: %s: Error string for a failed installation */
    630632                'installFailed'              => __( 'Installation failed: %s' ),
    631                 /* translators: Plugin name and version */
     633                /* translators: %s: Plugin name and version */
    632634                'pluginInstallingLabel'      => _x( 'Installing %s...', 'plugin' ), // no ellipsis
    633                 /* translators: Theme name and version */
     635                /* translators: %s: Theme name and version */
    634636                'themeInstallingLabel'       => _x( 'Installing %s...', 'theme' ), // no ellipsis
    635                 /* translators: Plugin name and version */
     637                /* translators: %s: Plugin name and version */
    636638                'pluginInstalledLabel'       => _x( '%s installed!', 'plugin' ),
    637                 /* translators: Theme name and version */
     639                /* translators: %s: Theme name and version */
    638640                'themeInstalledLabel'        => _x( '%s installed!', 'theme' ),
    639                 /* translators: Plugin name and version */
     641                /* translators: %s: Plugin name and version */
    640642                'pluginInstallFailedLabel'   => _x( '%s installation failed', 'plugin' ),
    641                 /* translators: Theme name and version */
     643                /* translators: %s: Theme name and version */
    642644                'themeInstallFailedLabel'    => _x( '%s installation failed', 'theme' ),
    643645                'installingMsg'              => __( 'Installing... please wait.' ),
    644646                'installedMsg'               => __( 'Installation completed successfully.' ),
    645                 /* translators: Activation URL */
    646                 'importerInstalledMsg'       => __( 'Importer installed successfully. <a href="%s">Activate plugin &#38; run importer</a>' ),
     647                /* translators: %s: Activation URL */
     648                'importerInstalledMsg'       => __( 'Importer installed successfully. <a href="%s">Run importer</a>' ),
    647649                /* translators: %s: Theme name */
    648650                'aysDelete'                  => __( 'Are you sure you want to delete %s?' ),
     
    662664                /* translators: %s: Theme name */
    663665                'activateThemeLabel'         => is_network_admin() ? _x( 'Network Activate %s', 'theme' ) : _x( 'Activate %s', 'theme' ),
    664                 'activateImporter'           => __( 'Activate importer' ),
     666                'activateImporter'           => __( 'Run Importer' ),
     667                /* translators: %s: Importer name */
     668                'activateImporterLabel'      => __( 'Run %s' ),
    665669                'unknownError'               => __( 'An unknown error occurred' ),
    666670                'pluginsFound'               => __( 'Number of plugins found: %d' ),
Note: See TracChangeset for help on using the changeset viewer.