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-includes/class-wp-customize-control.php

    r54133 r55276  
    634634                    </button>
    635635                    <div class="new-content-item">
    636                         <label for="create-input-<?php echo esc_attr( $this->id ); ?>"><span class="screen-reader-text"><?php _e( 'New page title' ); ?></span></label>
     636                        <label for="create-input-<?php echo esc_attr( $this->id ); ?>"><span class="screen-reader-text">
     637                            <?php
     638                            /* translators: Hidden accessibility text. */
     639                            _e( 'New page title' );
     640                            ?>
     641                        </span></label>
    637642                        <input type="text" id="create-input-<?php echo esc_attr( $this->id ); ?>" class="create-item-input" placeholder="<?php esc_attr_e( 'New page title&hellip;' ); ?>">
    638643                        <button type="button" class="button add-content"><?php _e( 'Add' ); ?></button>
Note: See TracChangeset for help on using the changeset viewer.