Ticket #50710: 50710.patch
File 50710.patch, 5.4 KB (added by , 5 years ago) |
---|
-
wp-admin/includes/class-wp-plugin-install-list-table.php
528 528 esc_attr( $plugin['slug'] ), 529 529 esc_url( $status['url'] ), 530 530 /* translators: %s: Plugin name and version. */ 531 esc_attr( sprintf( _ _( 'Install %s now' ), $name ) ),531 esc_attr( sprintf( _x( 'Install %s now', 'plugin' ), $name ) ), 532 532 esc_attr( $name ), 533 533 __( 'Install Now' ) 534 534 ); … … 550 550 esc_attr( $plugin['slug'] ), 551 551 esc_url( $status['url'] ), 552 552 /* translators: %s: Plugin name and version. */ 553 esc_attr( sprintf( _ _( 'Update %s now' ), $name ) ),553 esc_attr( sprintf( _x( 'Update %s now', 'plugin' ), $name ) ), 554 554 esc_attr( $name ), 555 555 __( 'Update Now' ) 556 556 ); -
wp-admin/includes/class-wp-theme-install-list-table.php
323 323 '<a class="install-now" href="%s" title="%s">%s</a>', 324 324 esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ), 325 325 /* translators: %s: Theme name. */ 326 esc_attr( sprintf( _ _( 'Install %s' ), $name ) ),326 esc_attr( sprintf( _x( 'Install %s', 'theme' ), $name ) ), 327 327 __( 'Install Now' ) 328 328 ); 329 329 break; -
wp-admin/includes/deprecated.php
1379 1379 echo '<li class="dashboard-news-plugin"><span>' . __( 'Popular Plugin' ) . ':</span> ' . esc_html( $raw_title ) . 1380 1380 ' <a href="' . $ilink . '" class="thickbox open-plugin-details-modal" aria-label="' . 1381 1381 /* 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>'; 1383 1383 1384 1384 $feed->__destruct(); 1385 1385 unset( $feed ); -
wp-admin/includes/theme.php
240 240 sprintf( 241 241 'aria-label="%s" id="update-theme" data-slug="%s"', 242 242 /* translators: %s: Theme name. */ 243 esc_attr( sprintf( _ _( 'Update %s now' ), $theme_name ) ),243 esc_attr( sprintf( _x( 'Update %s now', 'theme' ), $theme_name ) ), 244 244 $stylesheet 245 245 ) 246 246 ); -
wp-admin/includes/update.php
509 509 sprintf( 510 510 'class="update-link" aria-label="%s"', 511 511 /* translators: %s: Plugin name. */ 512 esc_attr( sprintf( _ _( 'Update %s now' ), $plugin_name ) )512 esc_attr( sprintf( _x( 'Update %s now', 'plugin' ), $plugin_name ) ) 513 513 ) 514 514 ); 515 515 } else { … … 694 694 sprintf( 695 695 'class="update-link" aria-label="%s"', 696 696 /* translators: %s: Theme name. */ 697 esc_attr( sprintf( _ _( 'Update %s now' ), $theme['Name'] ) )697 esc_attr( sprintf( _x( 'Update %s now', 'theme' ), $theme['Name'] ) ) 698 698 ) 699 699 ); 700 700 } -
wp-admin/js/updates.js
813 813 'aria-label', 814 814 sprintf( 815 815 /* translators: %s: Plugin name. */ 816 817 816 _x( 'Install %s now', 'plugin' ), 817 pluginName 818 818 ) 819 819 ) 820 820 .text( __( 'Install Now' ) ); -
wp-admin/theme-install.php
323 323 <# if ( data.compatible_wp && data.compatible_php ) { #> 324 324 <?php 325 325 /* translators: %s: Theme name. */ 326 $aria_label = sprintf( _ _( 'Install %s' ), '{{ data.name }}' );326 $aria_label = sprintf( _x( 'Install %s', 'theme' ), '{{ data.name }}' ); 327 327 ?> 328 328 <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> 329 329 <button class="button preview install-theme-preview"><?php _e( 'Preview' ); ?></button> … … 330 330 <# } else { #> 331 331 <?php 332 332 /* translators: %s: Theme name. */ 333 $aria_label = sprintf( _ _( 'Cannot Install %s' ), '{{ data.name }}' );333 $aria_label = sprintf( _x( 'Cannot Install %s', 'theme' ), '{{ data.name }}' ); 334 334 ?> 335 335 <a class="button button-primary disabled" data-name="{{ data.name }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _ex( 'Cannot Install', 'theme' ); ?></a> 336 336 <button class="button disabled"><?php _e( 'Preview' ); ?></button>