Make WordPress Core


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

    r54891 r55276  
    208208            </button>
    209209            <a class="customize-controls-close" href="<?php echo esc_url( $wp_customize->get_return_url() ); ?>">
    210                 <span class="screen-reader-text"><?php _e( 'Close the Customizer and go back to the previous page' ); ?></span>
     210                <span class="screen-reader-text">
     211                    <?php
     212                    /* translators: Hidden accessibility text. */
     213                    _e( 'Close the Customizer and go back to the previous page' );
     214                    ?>
     215                </span>
    211216            </a>
    212217        </div>
     
    231236                        ?>
    232237                        </span>
    233                         <button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button>
     238                        <button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text">
     239                            <?php
     240                            /* translators: Hidden accessibility text. */
     241                            _e( 'Help' );
     242                            ?>
     243                        </span></button>
    234244                    </div>
    235245                    <div class="customize-panel-description">
Note: See TracChangeset for help on using the changeset viewer.