Make WordPress Core

Ticket #50710: 50710.patch

File 50710.patch, 5.4 KB (added by ramiy, 5 years ago)
  • wp-admin/includes/class-wp-plugin-install-list-table.php

     
    528528                                                                        esc_attr( $plugin['slug'] ),
    529529                                                                        esc_url( $status['url'] ),
    530530                                                                        /* translators: %s: Plugin name and version. */
    531                                                                         esc_attr( sprintf( __( 'Install %s now' ), $name ) ),
     531                                                                        esc_attr( sprintf( _x( 'Install %s now', 'plugin' ), $name ) ),
    532532                                                                        esc_attr( $name ),
    533533                                                                        __( 'Install Now' )
    534534                                                                );
     
    550550                                                                        esc_attr( $plugin['slug'] ),
    551551                                                                        esc_url( $status['url'] ),
    552552                                                                        /* translators: %s: Plugin name and version. */
    553                                                                         esc_attr( sprintf( __( 'Update %s now' ), $name ) ),
     553                                                                        esc_attr( sprintf( _x( 'Update %s now', 'plugin' ), $name ) ),
    554554                                                                        esc_attr( $name ),
    555555                                                                        __( 'Update Now' )
    556556                                                                );
  • wp-admin/includes/class-wp-theme-install-list-table.php

     
    323323                                        '<a class="install-now" href="%s" title="%s">%s</a>',
    324324                                        esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ),
    325325                                        /* translators: %s: Theme name. */
    326                                         esc_attr( sprintf( __( 'Install %s' ), $name ) ),
     326                                        esc_attr( sprintf( _x( 'Install %s', 'theme' ), $name ) ),
    327327                                        __( 'Install Now' )
    328328                                );
    329329                                break;
  • wp-admin/includes/deprecated.php

     
    13791379                echo '<li class="dashboard-news-plugin"><span>' . __( 'Popular Plugin' ) . ':</span> ' . esc_html( $raw_title ) .
    13801380                        '&nbsp;<a href="' . $ilink . '" class="thickbox open-plugin-details-modal" aria-label="' .
    13811381                        /* translators: %s: Plugin name. */
    1382                         esc_attr( sprintf( __( 'Install %s' ), $raw_title ) ) . '">(' . __( 'Install' ) . ')</a></li>';
     1382                        esc_attr( sprintf( _x( 'Install %s', 'plugin' ), $raw_title ) ) . '">(' . __( 'Install' ) . ')</a></li>';
    13831383
    13841384                $feed->__destruct();
    13851385                unset( $feed );
  • wp-admin/includes/theme.php

     
    240240                                        sprintf(
    241241                                                'aria-label="%s" id="update-theme" data-slug="%s"',
    242242                                                /* translators: %s: Theme name. */
    243                                                 esc_attr( sprintf( __( 'Update %s now' ), $theme_name ) ),
     243                                                esc_attr( sprintf( _x( 'Update %s now', 'theme' ), $theme_name ) ),
    244244                                                $stylesheet
    245245                                        )
    246246                                );
  • wp-admin/includes/update.php

     
    509509                                        sprintf(
    510510                                                'class="update-link" aria-label="%s"',
    511511                                                /* translators: %s: Plugin name. */
    512                                                 esc_attr( sprintf( __( 'Update %s now' ), $plugin_name ) )
     512                                                esc_attr( sprintf( _x( 'Update %s now', 'plugin' ), $plugin_name ) )
    513513                                        )
    514514                                );
    515515                        } else {
     
    694694                        sprintf(
    695695                                'class="update-link" aria-label="%s"',
    696696                                /* translators: %s: Theme name. */
    697                                 esc_attr( sprintf( __( 'Update %s now' ), $theme['Name'] ) )
     697                                esc_attr( sprintf( _x( 'Update %s now', 'theme' ), $theme['Name'] ) )
    698698                        )
    699699                );
    700700        }
  • wp-admin/js/updates.js

     
    813813                                'aria-label',
    814814                                sprintf(
    815815                                        /* translators: %s: Plugin name. */
    816                                          _x( 'Install %s now', 'plugin' ),
    817                                          pluginName
     816                                        _x( 'Install %s now', 'plugin' ),
     817                                        pluginName
    818818                                )
    819819                        )
    820820                        .text( __( 'Install Now' ) );
  • wp-admin/theme-install.php

     
    323323                                <# if ( data.compatible_wp && data.compatible_php ) { #>
    324324                                        <?php
    325325                                        /* translators: %s: Theme name. */
    326                                         $aria_label = sprintf( __( 'Install %s' ), '{{ data.name }}' );
     326                                        $aria_label = sprintf( _x( 'Install %s', 'theme' ), '{{ data.name }}' );
    327327                                        ?>
    328328                                        <a class="button button-primary theme-install" data-name="{{ data.name }}" data-slug="{{ data.id }}" href="{{ data.install_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Install' ); ?></a>
    329329                                        <button class="button preview install-theme-preview"><?php _e( 'Preview' ); ?></button>
     
    330330                                <# } else { #>
    331331                                        <?php
    332332                                        /* translators: %s: Theme name. */
    333                                         $aria_label = sprintf( __( 'Cannot Install %s' ), '{{ data.name }}' );
     333                                        $aria_label = sprintf( _x( 'Cannot Install %s', 'theme' ), '{{ data.name }}' );
    334334                                        ?>
    335335                                        <a class="button button-primary disabled" data-name="{{ data.name }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _ex( 'Cannot Install', 'theme' ); ?></a>
    336336                                        <button class="button disabled"><?php _e( 'Preview' ); ?></button>