Make WordPress Core


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

    r53131 r55276  
    178178<form method="get" id="export-filters">
    179179<fieldset>
    180 <legend class="screen-reader-text"><?php _e( 'Content to export' ); ?></legend>
     180<legend class="screen-reader-text">
     181    <?php
     182    /* translators: Hidden accessibility text. */
     183    _e( 'Content to export' );
     184    ?>
     185</legend>
    181186<input type="hidden" name="download" value="true" />
    182187<p><label><input type="radio" name="content" value="all" checked="checked" aria-describedby="all-content-desc" /> <?php _e( 'All content' ); ?></label></p>
     
    208213    <li>
    209214        <fieldset>
    210         <legend class="screen-reader-text"><?php _e( 'Date range:' ); ?></legend>
     215        <legend class="screen-reader-text">
     216            <?php
     217            /* translators: Hidden accessibility text. */
     218            _e( 'Date range:' )
     219            ?>
     220        </legend>
    211221        <label for="post-start-date" class="label-responsive"><?php _e( 'Start date:' ); ?></label>
    212222        <select name="post_start_date" id="post-start-date">
     
    255265    <li>
    256266        <fieldset>
    257         <legend class="screen-reader-text"><?php _e( 'Date range:' ); ?></legend>
     267        <legend class="screen-reader-text">
     268            <?php
     269            /* translators: Hidden accessibility text. */
     270            _e( 'Date range:' );
     271            ?>
     272        </legend>
    258273        <label for="page-start-date" class="label-responsive"><?php _e( 'Start date:' ); ?></label>
    259274        <select name="page_start_date" id="page-start-date">
     
    295310    <li>
    296311        <fieldset>
    297         <legend class="screen-reader-text"><?php _e( 'Date range:' ); ?></legend>
     312        <legend class="screen-reader-text">
     313            <?php
     314            /* translators: Hidden accessibility text. */
     315            _e( 'Date range:' );
     316            ?>
     317        </legend>
    298318        <label for="attachment-start-date" class="label-responsive"><?php _e( 'Start date:' ); ?></label>
    299319        <select name="attachment_start_date" id="attachment-start-date">
Note: See TracChangeset for help on using the changeset viewer.