Make WordPress Core


Ignore:
Timestamp:
08/26/2020 01:33:45 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Twenty Twenty: Add context to adjectives and homonyms.

This allows for better localization in languages where adjectives are translated differently depending on which noun they modify, or when a different translation is required for a noun vs. a verb.

Props dimadin, justinahinon.
Fixes #49797.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/header.php

    r46827 r48861  
    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 -->
     
    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">
     
    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 -->
Note: See TracChangeset for help on using the changeset viewer.