Changeset 38071
- Timestamp:
- 07/16/2016 11:19:05 PM (8 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php
r37714 r38071 473 473 474 474 /* translators: %s: theme name */ 475 $aria_label = sprintf( _ _( 'Delete %s' ), $theme->display( 'Name' ) );475 $aria_label = sprintf( _x( 'Delete %s', 'theme' ), $theme->display( 'Name' ) ); 476 476 477 477 $actions['delete'] = sprintf( '<a href="%s" class="delete" aria-label="%s">%s</a>', -
trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php
r37714 r38071 492 492 esc_url( $activate_url ), 493 493 /* translators: %s: Plugin name */ 494 esc_attr( sprintf( _ _( 'Activate %s' ), $plugin['name'] ) ),494 esc_attr( sprintf( _x( 'Activate %s', 'plugin' ), $plugin['name'] ) ), 495 495 $button_text 496 496 ); -
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r38033 r38071 601 601 if ( current_user_can( 'manage_network_plugins' ) ) { 602 602 /* translators: %s: plugin name */ 603 $actions['deactivate'] = '<a href="' . wp_nonce_url( 'plugins.php?action=deactivate&plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'deactivate-plugin_' . $plugin_file ) . '" aria-label="' . esc_attr( sprintf( _ _( 'Network deactivate %s' ), $plugin_data['Name'] ) ) . '">' . __( 'Network Deactivate' ) . '</a>';603 $actions['deactivate'] = '<a href="' . wp_nonce_url( 'plugins.php?action=deactivate&plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'deactivate-plugin_' . $plugin_file ) . '" aria-label="' . esc_attr( sprintf( _x( 'Network deactivate %s', 'plugin' ), $plugin_data['Name'] ) ) . '">' . __( 'Network Deactivate' ) . '</a>'; 604 604 } 605 605 } else { 606 606 if ( current_user_can( 'manage_network_plugins' ) ) { 607 607 /* translators: %s: plugin name */ 608 $actions['activate'] = '<a href="' . wp_nonce_url( 'plugins.php?action=activate&plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'activate-plugin_' . $plugin_file ) . '" class="edit" aria-label="' . esc_attr( sprintf( _ _( 'Network Activate %s' ), $plugin_data['Name'] ) ) . '">' . __( 'Network Activate' ) . '</a>';608 $actions['activate'] = '<a href="' . wp_nonce_url( 'plugins.php?action=activate&plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'activate-plugin_' . $plugin_file ) . '" class="edit" aria-label="' . esc_attr( sprintf( _x( 'Network Activate %s', 'plugin' ), $plugin_data['Name'] ) ) . '">' . __( 'Network Activate' ) . '</a>'; 609 609 } 610 610 if ( current_user_can( 'delete_plugins' ) && ! is_plugin_active( $plugin_file ) ) { 611 611 /* translators: %s: plugin name */ 612 $actions['delete'] = '<a href="' . wp_nonce_url( 'plugins.php?action=delete-selected&checked[]=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'bulk-plugins' ) . '" class="delete" aria-label="' . esc_attr( sprintf( _ _( 'Delete %s' ), $plugin_data['Name'] ) ) . '">' . __( 'Delete' ) . '</a>';612 $actions['delete'] = '<a href="' . wp_nonce_url( 'plugins.php?action=delete-selected&checked[]=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'bulk-plugins' ) . '" class="delete" aria-label="' . esc_attr( sprintf( _x( 'Delete %s', 'plugin' ), $plugin_data['Name'] ) ) . '">' . __( 'Delete' ) . '</a>'; 613 613 } 614 614 } … … 624 624 } elseif ( $is_active ) { 625 625 /* translators: %s: plugin name */ 626 $actions['deactivate'] = '<a href="' . wp_nonce_url( 'plugins.php?action=deactivate&plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'deactivate-plugin_' . $plugin_file ) . '" aria-label="' . esc_attr( sprintf( _ _( 'Deactivate %s' ), $plugin_data['Name'] ) ) . '">' . __( 'Deactivate' ) . '</a>';626 $actions['deactivate'] = '<a href="' . wp_nonce_url( 'plugins.php?action=deactivate&plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'deactivate-plugin_' . $plugin_file ) . '" aria-label="' . esc_attr( sprintf( _x( 'Deactivate %s', 'plugin' ), $plugin_data['Name'] ) ) . '">' . __( 'Deactivate' ) . '</a>'; 627 627 } else { 628 628 /* translators: %s: plugin name */ 629 $actions['activate'] = '<a href="' . wp_nonce_url( 'plugins.php?action=activate&plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'activate-plugin_' . $plugin_file ) . '" class="edit" aria-label="' . esc_attr( sprintf( _ _( 'Activate %s' ), $plugin_data['Name'] ) ) . '">' . __( 'Activate' ) . '</a>';629 $actions['activate'] = '<a href="' . wp_nonce_url( 'plugins.php?action=activate&plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'activate-plugin_' . $plugin_file ) . '" class="edit" aria-label="' . esc_attr( sprintf( _x( 'Activate %s', 'plugin' ), $plugin_data['Name'] ) ) . '">' . __( 'Activate' ) . '</a>'; 630 630 631 631 if ( ! is_multisite() && current_user_can( 'delete_plugins' ) ) { 632 632 /* translators: %s: plugin name */ 633 $actions['delete'] = '<a href="' . wp_nonce_url( 'plugins.php?action=delete-selected&checked[]=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'bulk-plugins' ) . '" class="delete" aria-label="' . esc_attr( sprintf( _ _( 'Delete %s' ), $plugin_data['Name'] ) ) . '">' . __( 'Delete' ) . '</a>';633 $actions['delete'] = '<a href="' . wp_nonce_url( 'plugins.php?action=delete-selected&checked[]=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'bulk-plugins' ) . '" class="delete" aria-label="' . esc_attr( sprintf( _x( 'Delete %s', 'plugin' ), $plugin_data['Name'] ) ) . '">' . __( 'Delete' ) . '</a>'; 634 634 } 635 635 } // end if $is_active -
trunk/src/wp-admin/theme-install.php
r38057 r38071 251 251 <?php 252 252 /* translators: %s: Theme name */ 253 $aria_label = sprintf( _ _( 'Activate %s' ), '{{ data.name }}' );253 $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' ); 254 254 ?> 255 255 <# if ( data.activate_url ) { #> -
trunk/src/wp-admin/themes.php
r38057 r38071 280 280 <?php 281 281 /* translators: %s: Theme name */ 282 $aria_label = sprintf( _ _( 'Activate %s' ), '{{ data.name }}' );282 $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' ); 283 283 ?> 284 284 <a class="button button-secondary activate" href="<?php echo $theme['actions']['activate']; ?>" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a> … … 409 409 <?php 410 410 /* translators: %s: Theme name */ 411 $aria_label = sprintf( _ _( 'Activate %s' ), '{{ data.name }}' );411 $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' ); 412 412 ?> 413 413 <a class="button button-secondary activate" href="{{{ data.actions.activate }}}" aria-label="<?php echo $aria_label; ?>"><?php _e( 'Activate' ); ?></a> … … 467 467 <?php 468 468 /* translators: %s: Theme name */ 469 $aria_label = sprintf( _ _( 'Activate %s' ), '{{ data.name }}' );469 $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' ); 470 470 ?> 471 471 <# if ( data.actions.activate ) { #>
Note: See TracChangeset
for help on using the changeset viewer.