Make WordPress Core


Ignore:
Timestamp:
02/07/2023 05:08:26 PM (10 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-admin/options-writing.php

    r51475 r55276  
    6868<tr>
    6969<th scope="row"><?php _e( 'Formatting' ); ?></th>
    70 <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Formatting' ); ?></span></legend>
     70<td><fieldset><legend class="screen-reader-text"><span>
     71    <?php
     72    /* translators: Hidden accessibility text. */
     73    _e( 'Formatting' );
     74    ?>
     75</span></legend>
    7176<label for="use_smilies">
    7277<input name="use_smilies" type="checkbox" id="use_smilies" value="1" <?php checked( '1', get_option( 'use_smilies' ) ); ?> />
Note: See TracChangeset for help on using the changeset viewer.