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/twentyfourteen/inc/template-tags.php

    r53308 r55276  
    5858            ?>
    5959        <nav class="navigation paging-navigation">
    60         <h1 class="screen-reader-text"><?php _e( 'Posts navigation', 'twentyfourteen' ); ?></h1>
     60        <h1 class="screen-reader-text">
     61            <?php
     62            /* translators: Hidden accessibility text. */
     63            _e( 'Posts navigation', 'twentyfourteen' );
     64            ?>
     65        </h1>
    6166        <div class="pagination loop-pagination">
    6267            <?php echo $links; ?>
     
    8590        ?>
    8691        <nav class="navigation post-navigation">
    87         <h1 class="screen-reader-text"><?php _e( 'Post navigation', 'twentyfourteen' ); ?></h1>
     92        <h1 class="screen-reader-text">
     93            <?php
     94            /* translators: Hidden accessibility text. */
     95            _e( 'Post navigation', 'twentyfourteen' );
     96            ?>
     97        </h1>
    8898        <div class="nav-links">
    8999            <?php
Note: See TracChangeset for help on using the changeset viewer.