Make WordPress Core


Ignore:
Timestamp:
02/07/2023 05:08:26 PM (22 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/class-wp-editor.php

    r54891 r55276  
    18671867        <?php wp_nonce_field( 'internal-linking', '_ajax_linking_nonce', false ); ?>
    18681868        <h1 id="link-modal-title"><?php _e( 'Insert/edit link' ); ?></h1>
    1869         <button type="button" id="wp-link-close"><span class="screen-reader-text"><?php _e( 'Close' ); ?></span></button>
     1869        <button type="button" id="wp-link-close"><span class="screen-reader-text">
     1870            <?php
     1871            /* translators: Hidden accessibility text. */
     1872            _e( 'Close' );
     1873            ?>
     1874        </span></button>
    18701875        <div id="link-selector">
    18711876            <div id="link-options">
     
    19021907                    <div class="query-notice" id="query-notice-message">
    19031908                        <em class="query-notice-default"><?php _e( 'No search term specified. Showing recent items.' ); ?></em>
    1904                         <em class="query-notice-hint screen-reader-text"><?php _e( 'Search or use up and down arrow keys to select an item.' ); ?></em>
     1909                        <em class="query-notice-hint screen-reader-text">
     1910                            <?php
     1911                            /* translators: Hidden accessibility text. */
     1912                            _e( 'Search or use up and down arrow keys to select an item.' );
     1913                            ?>
     1914                        </em>
    19051915                    </div>
    19061916                    <ul></ul>
Note: See TracChangeset for help on using the changeset viewer.