- Timestamp:
- 02/26/2024 08:33:46 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 );
Note: See TracChangeset
for help on using the changeset viewer.