Make WordPress Core

Ticket #37290: 37290.patch

File 37290.patch, 2.7 KB (added by SergeyBiryukov, 9 years ago)
  • src/wp-admin/js/updates.js

     
    595595
    596596                $button
    597597                        .removeClass( 'updating-message' ).addClass( 'button-disabled' )
    598                         .attr( 'aria-label', wp.updates.l10n.installFailedLabel.replace( '%s', response.pluginName ) )
     598                        .attr( 'aria-label', wp.updates.l10n.pluginInstallFailedLabel.replace( '%s', response.pluginName ) )
    599599                        .text( wp.updates.l10n.installFailedShort );
    600600
    601601                wp.a11y.speak( errorMessage, 'assertive' );
     
    10981098
    10991099                $button
    11001100                        .removeClass( 'updating-message' )
    1101                         .attr( 'aria-label', wp.updates.l10n.installFailedLabel.replace( '%s', $card.find( '.theme-name' ).text() ) )
     1101                        .attr( 'aria-label', wp.updates.l10n.themeInstallFailedLabel.replace( '%s', $card.find( '.theme-name' ).text() ) )
    11021102                        .text( wp.updates.l10n.installFailedShort );
    11031103
    11041104                wp.a11y.speak( errorMessage, 'assertive' );
  • src/wp-includes/script-loader.php

     
    628628                                'installFailedShort'         => __( 'Install Failed!' ),
    629629                                /* translators: Error string for a failed installation */
    630630                                'installFailed'              => __( 'Installation failed: %s' ),
    631                                 /* translators: Plugin/Theme name and version */
    632                                 'installingLabel'            => __( 'Installing %s...' ), // no ellipsis
    633                                 /* translators: Plugin/Theme name and version */
    634                                 'installedLabel'             => __( '%s installed!' ),
    635                                 /* translators: Plugin/Theme name and version */
    636                                 'installFailedLabel'         => __( '%s installation failed' ),
     631                                /* translators: Plugin name and version */
     632                                'pluginInstallingLabel'      => _x( 'Installing %s...', 'plugin' ), // no ellipsis
     633                                /* translators: Theme name and version */
     634                                'themeInstallingLabel'       => _x( 'Installing %s...', 'theme' ), // no ellipsis
     635                                /* translators: Plugin name and version */
     636                                'pluginInstalledLabel'       => _x( '%s installed!', 'plugin' ),
     637                                /* translators: Theme name and version */
     638                                'themeInstalledLabel'        => _x( '%s installed!', 'theme' ),
     639                                /* translators: Plugin name and version */
     640                                'pluginInstallFailedLabel'   => _x( '%s installation failed', 'plugin' ),
     641                                /* translators: Theme name and version */
     642                                'themeInstallFailedLabel'    => _x( '%s installation failed', 'theme' ),
    637643                                'installingMsg'              => __( 'Installing... please wait.' ),
    638644                                'installedMsg'               => __( 'Installation completed successfully.' ),
    639645                                /* translators: Activation URL */