Make WordPress Core


Ignore:
Timestamp:
02/07/2023 05:08:26 PM (17 months 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/entry-header.php

    r51322 r55276  
    3434
    3535            <div class="entry-categories">
    36                 <span class="screen-reader-text"><?php _e( 'Categories', 'twentytwenty' ); ?></span>
     36                <span class="screen-reader-text">
     37                    <?php
     38                    /* translators: Hidden accessibility text. */
     39                    _e( 'Categories', 'twentytwenty' );
     40                    ?>
     41                </span>
    3742                <div class="entry-categories-inner">
    3843                    <?php the_category( ' ' ); ?>
Note: See TracChangeset for help on using the changeset viewer.