Make WordPress Core


Ignore:
Timestamp:
02/07/2023 05:08:26 PM (2 years ago)
Author:
SergeyBiryukov
Message:

I18N: Mark screen reader strings as such with translator comments.

This aims to provide better context for translators and make it easier to determine that some strings contain hidden accessibility text and are not displayed in the UI.

Props kebbet, mercime, pavelevap, ocean90, swissspidy, Chouby, jipmoors, afercia, desrosj, costdev, audrasjb, SergeyBiryukov.
Fixes #29748.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/template-parts/modal-search.php

    r53051 r55276  
    2424
    2525            <button class="toggle search-untoggle close-search-toggle fill-children-current-color" data-toggle-target=".search-modal" data-toggle-body-class="showing-search-modal" data-set-focus=".search-modal .search-field">
    26                 <span class="screen-reader-text"><?php _e( 'Close search', 'twentytwenty' ); ?></span>
     26                <span class="screen-reader-text">
     27                    <?php
     28                    /* translators: Hidden accessibility text. */
     29                    _e( 'Close search', 'twentytwenty' );
     30                    ?>
     31                </span>
    2732                <?php twentytwenty_the_theme_svg( 'cross' ); ?>
    2833            </button><!-- .search-toggle -->
Note: See TracChangeset for help on using the changeset viewer.