Make WordPress Core

Ticket #49797: 49797.diff

File 49797.diff, 4.3 KB (added by dimadin, 4 years ago)
  • src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php

    diff --git src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php
    index ff7c70c2fa..94b34f2ab4 100644
    if ( ! class_exists( 'TwentyTwenty_Customize' ) ) { 
    122122                                        'section' => 'colors',
    123123                                        'label'   => __( 'Primary Color', 'twentytwenty' ),
    124124                                        'choices' => array(
    125                                                 'default' => __( 'Default', 'twentytwenty' ),
    126                                                 'custom'  => __( 'Custom', 'twentytwenty' ),
     125                                                'default' => _x( 'Default', 'color', 'twentytwenty' ),
     126                                                'custom'  => _x( 'Custom', 'color', 'twentytwenty' ),
    127127                                        ),
    128128                                )
    129129                        );
  • src/wp-content/themes/twentytwenty/functions.php

    diff --git src/wp-content/themes/twentytwenty/functions.php src/wp-content/themes/twentytwenty/functions.php
    index 5fe5f58e8a..7a7bf51264 100644
    function twentytwenty_block_editor_settings() { 
    491491                        'color' => twentytwenty_get_color_for_area( 'content', 'accent' ),
    492492                ),
    493493                array(
    494                         'name'  => __( 'Primary', 'twentytwenty' ),
     494                        'name'  => _x( 'Primary', 'color', 'twentytwenty' ),
    495495                        'slug'  => 'primary',
    496496                        'color' => twentytwenty_get_color_for_area( 'content', 'text' ),
    497497                ),
    498498                array(
    499                         'name'  => __( 'Secondary', 'twentytwenty' ),
     499                        'name'  => _x( 'Secondary', 'color', 'twentytwenty' ),
    500500                        'slug'  => 'secondary',
    501501                        'color' => twentytwenty_get_color_for_area( 'content', 'secondary' ),
    502502                ),
  • src/wp-content/themes/twentytwenty/header.php

    diff --git src/wp-content/themes/twentytwenty/header.php src/wp-content/themes/twentytwenty/header.php
    index 7095b4a8a9..dd63f33767 100644
     
    5050                                                                <span class="toggle-icon">
    5151                                                                        <?php twentytwenty_the_theme_svg( 'search' ); ?>
    5252                                                                </span>
    53                                                                 <span class="toggle-text"><?php _e( 'Search', 'twentytwenty' ); ?></span>
     53                                                                <span class="toggle-text"><?php _ex( 'Search', 'toggle text', 'twentytwenty' ); ?></span>
    5454                                                        </span>
    5555                                                </button><!-- .search-toggle -->
    5656
     
    8585                                        if ( has_nav_menu( 'primary' ) || ! has_nav_menu( 'expanded' ) ) {
    8686                                                ?>
    8787
    88                                                         <nav class="primary-menu-wrapper" aria-label="<?php esc_attr_e( 'Horizontal', 'twentytwenty' ); ?>" role="navigation">
     88                                                        <nav class="primary-menu-wrapper" aria-label="<?php echo esc_attr_x( 'Horizontal', 'menu', 'twentytwenty' ); ?>" role="navigation">
    8989
    9090                                                                <ul class="primary-menu reset-list-style">
    9191
     
    154154                                                                <button class="toggle search-toggle desktop-search-toggle" data-toggle-target=".search-modal" data-toggle-body-class="showing-search-modal" data-set-focus=".search-modal .search-field" aria-expanded="false">
    155155                                                                        <span class="toggle-inner">
    156156                                                                                <?php twentytwenty_the_theme_svg( 'search' ); ?>
    157                                                                                 <span class="toggle-text"><?php _e( 'Search', 'twentytwenty' ); ?></span>
     157                                                                                <span class="toggle-text"><?php _ex( 'Search', 'toggle text', 'twentytwenty' ); ?></span>
    158158                                                                        </span>
    159159                                                                </button><!-- .search-toggle -->
    160160
  • src/wp-content/themes/twentytwenty/template-parts/modal-menu.php

    diff --git src/wp-content/themes/twentytwenty/template-parts/modal-menu.php src/wp-content/themes/twentytwenty/template-parts/modal-menu.php
    index f1d86e3822..5702c4fa8b 100644
     
    4545
    4646                                        ?>
    4747
    48                                         <nav class="expanded-menu<?php echo esc_attr( $expanded_nav_classes ); ?>" aria-label="<?php esc_attr_e( 'Expanded', 'twentytwenty' ); ?>" role="navigation">
     48                                        <nav class="expanded-menu<?php echo esc_attr( $expanded_nav_classes ); ?>" aria-label="<?php echo esc_attr_x( 'Expanded', 'menu', 'twentytwenty' ); ?>" role="navigation">
    4949
    5050                                                <ul class="modal-menu reset-list-style">
    5151                                                        <?php
     
    7070                                if ( 'expanded' !== $mobile_menu_location ) {
    7171                                        ?>
    7272
    73                                         <nav class="mobile-menu" aria-label="<?php esc_attr_e( 'Mobile', 'twentytwenty' ); ?>" role="navigation">
     73                                        <nav class="mobile-menu" aria-label="<?php echo esc_attr_x( 'Mobile', 'menu', 'twentytwenty' ); ?>" role="navigation">
    7474
    7575                                                <ul class="modal-menu reset-list-style">
    7676