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-admin/themes.php

    r54839 r55276  
    941941    <div class="theme-wrap wp-clearfix" role="document">
    942942        <div class="theme-header">
    943             <button class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme' ); ?></span></button>
    944             <button class="right dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show next theme' ); ?></span></button>
    945             <button class="close dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Close details dialog' ); ?></span></button>
     943            <button class="left dashicons dashicons-no"><span class="screen-reader-text">
     944                <?php
     945                /* translators: Hidden accessibility text. */
     946                _e( 'Show previous theme' );
     947                ?>
     948            </span></button>
     949            <button class="right dashicons dashicons-no"><span class="screen-reader-text">
     950                <?php
     951                /* translators: Hidden accessibility text. */
     952                _e( 'Show next theme' );
     953                ?>
     954            </span></button>
     955            <button class="close dashicons dashicons-no"><span class="screen-reader-text">
     956                <?php
     957                /* translators: Hidden accessibility text. */
     958                _e( 'Close details dialog' );
     959                ?>
     960            </span></button>
    946961        </div>
    947962        <div class="theme-about wp-clearfix">
Note: See TracChangeset for help on using the changeset viewer.