Make WordPress Core


Ignore:
Timestamp:
02/07/2023 05:08:26 PM (18 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-includes/functions.php

    r55210 r55276  
    71487148    <div id="wp-auth-check-bg"></div>
    71497149    <div id="wp-auth-check">
    7150     <button type="button" class="wp-auth-check-close button-link"><span class="screen-reader-text"><?php _e( 'Close dialog' ); ?></span></button>
     7150    <button type="button" class="wp-auth-check-close button-link"><span class="screen-reader-text">
     7151        <?php
     7152        /* translators: Hidden accessibility text. */
     7153        _e( 'Close dialog' );
     7154        ?>
     7155    </span></button>
    71517156    <?php
    71527157
     
    81118116        esc_url( $direct_update_url ),
    81128117        __( 'Update PHP' ),
    8113         /* translators: Accessibility text. */
     8118        /* translators: Hidden accessibility text. */
    81148119        __( '(opens in a new tab)' )
    81158120    );
Note: See TracChangeset for help on using the changeset viewer.