Changeset 57714
- Timestamp:
- 02/26/2024 08:33:46 PM (12 months ago)
- Location:
- trunk/src
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/wp/updates.js
r57696 r57714 958 958 959 959 if ( 'plugins-network' === pagenow ) { 960 buttonText = _x( 'Network Activate' );960 buttonText = _x( 'Network Activate', 'plugin' ); 961 961 ariaLabel = sprintf( 962 962 /* translators: %s: Plugin name. */ … … 1014 1014 wp.updates.checkPluginDependenciesError = function( response ) { 1015 1015 var $message = $( '.plugin-card-' + response.slug + ', #plugin-information-footer' ).find( '.install-now' ), 1016 buttonText = _ _( 'Activate' ),1016 buttonText = _x( 'Activate', 'plugin' ), 1017 1017 ariaLabel = sprintf( 1018 1018 /* translators: 1: Plugin name, 2. The reason the plugin cannot be activated. */ … … 1088 1088 removeClasses: 'installed updated-message button-primary', 1089 1089 addClasses: 'activating-message', 1090 text: _ x( 'Activating...', 'plugin' ),1090 text: __( 'Activating...' ), 1091 1091 ariaLabel: sprintf( 1092 1092 /* translators: %s: Plugin name. */ … … 1301 1301 ) 1302 1302 ) 1303 .text( _ _( 'Install Now' ) );1303 .text( _x( 'Install Now', 'plugin' ) ); 1304 1304 1305 1305 wp.a11y.speak( errorMessage, 'assertive' ); … … 1455 1455 sprintf( 1456 1456 /* translators: %s: The remaining number of plugins. */ 1457 _nx( '%s item', '%s items', 'plugin/plugins', remainingCount),1457 _nx( '%s item', '%s items', remainingCount, 'plugin/plugins' ), 1458 1458 remainingCount 1459 1459 ) … … 1804 1804 ) 1805 1805 ) 1806 .text( _ _( 'Activate' ) );1806 .text( _x( 'Activate', 'theme' ) ); 1807 1807 } 1808 1808 } … … 2626 2626 $message 2627 2627 .removeClass( 'updating-message' ) 2628 .text( _ _( 'Install Now' ) );2628 .text( _x( 'Install Now', 'plugin' ) ); 2629 2629 2630 2630 wp.a11y.speak( __( 'Update canceled.' ) ); … … 2664 2664 ) 2665 2665 ) 2666 .text( _ x( 'Activating...', 'plugin' ) );2666 .text( __( 'Activating...' ) ); 2667 2667 2668 2668 wp.updates.activatePlugin( … … 2707 2707 ) 2708 2708 ) 2709 .text( _ _( 'Install Now' ) );2709 .text( _x( 'Install Now', 'plugin' ) ); 2710 2710 2711 2711 wp.a11y.speak( __( 'Update canceled.' ) ); -
trunk/src/wp-admin/import.php
r56600 r57714 164 164 /* translators: %s: Importer name. */ 165 165 esc_attr( sprintf( _x( 'Install %s now', 'plugin' ), $data[0] ) ), 166 _ _( 'Install Now' )166 _x( 'Install Now', 'plugin' ) 167 167 ); 168 168 } else { -
trunk/src/wp-admin/includes/class-plugin-installer-skin.php
r55911 r57714 122 122 '<a class="button button-primary" href="%s" target="_parent">%s</a>', 123 123 wp_nonce_url( 'plugins.php?action=activate&networkwide=1&plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ), 124 _ _( 'Network Activate' )124 _x( 'Network Activate', 'plugin' ) 125 125 ); 126 126 unset( $install_actions['activate_plugin'] ); -
trunk/src/wp-admin/includes/class-theme-installer-skin.php
r55911 r57714 139 139 '<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>', 140 140 esc_url( $activate_link ), 141 _ _( 'Activate' ),141 _x( 'Activate', 'theme' ), 142 142 /* translators: Hidden accessibility text. %s: Theme name. */ 143 143 sprintf( _x( 'Activate “%s”', 'theme' ), $name ) -
trunk/src/wp-admin/includes/class-theme-upgrader-skin.php
r55911 r57714 111 111 '<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>', 112 112 esc_url( $activate_link ), 113 _ _( 'Activate' ),113 _x( 'Activate', 'theme' ), 114 114 /* translators: Hidden accessibility text. %s: Theme name. */ 115 115 sprintf( _x( 'Activate “%s”', 'theme' ), $name ) -
trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php
r57644 r57714 757 757 ) 758 758 ), 759 _ _( 'Activate' )759 _x( 'Activate', 'site' ) 760 760 ); 761 761 } else { -
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r57620 r57714 608 608 609 609 if ( 'active' !== $status ) { 610 $actions['activate-selected'] = $this->screen->in_admin( 'network' ) ? _ _( 'Network Activate' ) : __( 'Activate' );610 $actions['activate-selected'] = $this->screen->in_admin( 'network' ) ? _x( 'Network Activate', 'plugin' ) : _x( 'Activate', 'plugin' ); 611 611 } 612 612 613 613 if ( 'inactive' !== $status && 'recent' !== $status ) { 614 $actions['deactivate-selected'] = $this->screen->in_admin( 'network' ) ? _ _( 'Network Deactivate' ) : __( 'Deactivate' );614 $actions['deactivate-selected'] = $this->screen->in_admin( 'network' ) ? _x( 'Network Deactivate', 'plugin' ) : _x( 'Deactivate', 'plugin' ); 615 615 } 616 616 … … 821 821 /* translators: %s: Plugin name. */ 822 822 esc_attr( sprintf( _x( 'Network Deactivate %s', 'plugin' ), $plugin_data['Name'] ) ), 823 _ _( 'Network Deactivate' )823 _x( 'Network Deactivate', 'plugin' ) 824 824 ); 825 825 } … … 829 829 if ( $compatible_php && $compatible_wp ) { 830 830 if ( $has_unmet_dependencies ) { 831 $actions['activate'] = _ _( 'Network Activate' ) .831 $actions['activate'] = _x( 'Network Activate', 'plugin' ) . 832 832 '<span class="screen-reader-text">' . 833 833 __( 'You cannot activate this plugin as it has unmet requirements.' ) . … … 846 846 /* translators: %s: Plugin name. */ 847 847 esc_attr( sprintf( _x( 'Network Activate %s', 'plugin' ), $plugin_data['Name'] ) ), 848 _ _( 'Network Activate' )848 _x( 'Network Activate', 'plugin' ) 849 849 ); 850 850 } … … 935 935 if ( $compatible_php && $compatible_wp ) { 936 936 if ( $has_unmet_dependencies ) { 937 $actions['activate'] = _ _( 'Activate' ) .937 $actions['activate'] = _x( 'Activate', 'plugin' ) . 938 938 '<span class="screen-reader-text">' . 939 939 __( 'You cannot activate this plugin as it has unmet requirements.' ) . … … 952 952 /* translators: %s: Plugin name. */ 953 953 esc_attr( sprintf( _x( 'Activate %s', 'plugin' ), $plugin_data['Name'] ) ), 954 _ _( 'Activate' )954 _x( 'Activate', 'plugin' ) 955 955 ); 956 956 } … … 1533 1533 } 1534 1534 1535 $dependency_note = __( 'Note: this plugin cannot be deactivated or deleted until the plugins that require it are deactivated or deleted.' ); 1535 $dependency_note = __( 'Note: This plugin cannot be deactivated or deleted until the plugins that require it are deactivated or deleted.' ); 1536 1537 $comma = wp_get_list_item_separator(); 1538 $required_by = sprintf( 1539 /* translators: %s: List of dependencies. */ 1540 __( '<strong>Required by:</strong> %s' ), 1541 implode( $comma, $dependent_names ) 1542 ); 1543 1536 1544 printf( 1537 '<div class="required-by"><p><strong>%1$s</strong> %2$s</p><p>%3$s</p></div>', 1538 __( 'Required by:' ), 1539 esc_html( implode( ' | ', $dependent_names ) ), 1545 '<div class="required-by"><p>%1$s</p><p>%2$s</p></div>', 1546 $required_by, 1540 1547 $dependency_note 1541 1548 ); … … 1561 1568 } 1562 1569 1563 $dependency_note = __( 'Note: this plugin cannot be activated until the plugins that are required by it are activated.' ); 1570 $dependency_note = __( 'Note: This plugin cannot be activated until the plugins that are required by it are activated.' ); 1571 1572 $comma = wp_get_list_item_separator(); 1573 $requires = sprintf( 1574 /* translators: %s: List of dependency names. */ 1575 __( '<strong>Requires:</strong> %s' ), 1576 implode( $comma, $links ) 1577 ); 1564 1578 1565 1579 printf( 1566 '<div class="requires"><p><strong>%1$s</strong> %2$s</p><p>%3$s</p></div>', 1567 __( 'Requires:' ), 1568 implode( ' | ', $links ), 1580 '<div class="requires"><p>%1$s</p><p>%2$s</p></div>', 1581 $requires, 1569 1582 $dependency_note 1570 1583 ); -
trunk/src/wp-admin/includes/class-wp-theme-install-list-table.php
r55911 r57714 334 334 /* translators: %s: Theme name. */ 335 335 esc_attr( sprintf( _x( 'Install %s', 'theme' ), $name ) ), 336 _ _( 'Install Now' )336 _x( 'Install Now', 'theme' ) 337 337 ); 338 338 break; -
trunk/src/wp-admin/includes/class-wp-themes-list-table.php
r55732 r57714 213 213 /* translators: %s: Theme name. */ 214 214 esc_attr( sprintf( _x( 'Activate “%s”', 'theme' ), $title ) ), 215 _ _( 'Activate' )215 _x( 'Activate', 'theme' ) 216 216 ); 217 217 -
trunk/src/wp-admin/includes/plugin-install.php
r57658 r57714 362 362 </label> 363 363 <input type="file" id="pluginzip" name="pluginzip" accept=".zip" /> 364 <?php submit_button( _ _( 'Install Now' ), '', 'install-plugin-submit', false ); ?>364 <?php submit_button( _x( 'Install Now', 'plugin' ), '', 'install-plugin-submit', false ); ?> 365 365 </form> 366 366 </div> … … 888 888 $button = str_replace( 'class="', 'class="right ', $button ); 889 889 890 if ( ! str_contains( $button, _ _( 'Activate' ) ) ) {890 if ( ! str_contains( $button, _x( 'Activate', 'plugin' ) ) ) { 891 891 $button = str_replace( 'class="', 'id="plugin_install_from_iframe" class="', $button ); 892 892 } … … 955 955 esc_attr( sprintf( _x( 'Install %s now', 'plugin' ), $name ) ), 956 956 esc_attr( $name ), 957 _ _( 'Install Now' )957 _x( 'Install Now', 'plugin' ) 958 958 ); 959 959 … … 970 970 esc_attr( sprintf( _x( 'Install %s now', 'plugin' ), $name ) ), 971 971 esc_attr( $name ), 972 _ _( 'Install Now' )972 _x( 'Install Now', 'plugin' ) 973 973 ); 974 974 } else { … … 992 992 esc_attr( sprintf( _x( 'Update %s now', 'plugin' ), $name ) ), 993 993 esc_attr( $name ), 994 _ _( 'Update Now' )994 _x( 'Update Now', 'plugin' ) 995 995 ); 996 996 } else { … … 1012 1012 } elseif ( current_user_can( 'activate_plugin', $status['file'] ) ) { 1013 1013 if ( $compatible_php && $compatible_wp && $all_plugin_dependencies_active ) { 1014 $button_text = _ _( 'Activate' );1014 $button_text = _x( 'Activate', 'plugin' ); 1015 1015 /* translators: %s: Plugin name. */ 1016 1016 $button_label = _x( 'Activate %s', 'plugin' ); … … 1025 1025 1026 1026 if ( is_network_admin() ) { 1027 $button_text = _ _( 'Network Activate' );1027 $button_text = _x( 'Network Activate', 'plugin' ); 1028 1028 /* translators: %s: Plugin name. */ 1029 1029 $button_label = _x( 'Network Activate %s', 'plugin' ); … … 1043 1043 $button = sprintf( 1044 1044 '<button type="button" class="button button-disabled" disabled="disabled">%s</button>', 1045 is_network_admin() ? _x( 'Network Activate %s', 'plugin' ) : _x( 'Activate', 'plugin' )1045 is_network_admin() ? _x( 'Network Activate', 'plugin' ) : _x( 'Activate', 'plugin' ) 1046 1046 ); 1047 1047 } -
trunk/src/wp-admin/includes/theme-install.php
r56548 r57714 205 205 </label> 206 206 <input type="file" id="themezip" name="themezip" accept=".zip" /> 207 <?php submit_button( _ _( 'Install Now' ), '', 'install-theme-submit', false ); ?>207 <?php submit_button( _x( 'Install Now', 'theme' ), '', 'install-theme-submit', false ); ?> 208 208 </form> 209 209 <?php -
trunk/src/wp-admin/press-this.php
r47198 r57714 61 61 esc_url( $url ), 62 62 esc_attr( $plugin_slug ), 63 _ _( 'Install Now' )63 _x( 'Install Now', 'plugin' ) 64 64 ); 65 65 } else {
Note: See TracChangeset
for help on using the changeset viewer.