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/twentythirteen/header.php

    r54923 r55276  
    4343                <nav id="site-navigation" class="navigation main-navigation">
    4444                    <button class="menu-toggle"><?php _e( 'Menu', 'twentythirteen' ); ?></button>
    45                     <a class="screen-reader-text skip-link" href="#content"><?php _e( 'Skip to content', 'twentythirteen' ); ?></a>
     45                    <a class="screen-reader-text skip-link" href="#content">
     46                        <?php
     47                        /* translators: Hidden accessibility text. */
     48                        _e( 'Skip to content', 'twentythirteen' );
     49                        ?>
     50                    </a>
    4651                    <?php
    4752                    wp_nav_menu(
Note: See TracChangeset for help on using the changeset viewer.