Make WordPress Core


Ignore:
Timestamp:
02/07/2023 05:08:26 PM (16 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-includes/customize/class-wp-customize-themes-panel.php

    r52610 r55276  
    6868        ?>
    6969        <li class="panel-meta customize-info accordion-section <# if ( ! data.description ) { #> cannot-expand<# } #>">
    70             <button class="customize-panel-back" tabindex="-1" type="button"><span class="screen-reader-text"><?php _e( 'Back' ); ?></span></button>
     70            <button class="customize-panel-back" tabindex="-1" type="button"><span class="screen-reader-text">
     71                <?php
     72                /* translators: Hidden accessibility text. */
     73                _e( 'Back' );
     74                ?>
     75            </span></button>
    7176            <div class="accordion-section-title">
    7277                <span class="preview-notice">
     
    8186                <?php if ( current_user_can( 'install_themes' ) && ! is_multisite() ) : ?>
    8287                    <# if ( data.description ) { #>
    83                         <button class="customize-help-toggle dashicons dashicons-editor-help" type="button" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button>
     88                        <button class="customize-help-toggle dashicons dashicons-editor-help" type="button" aria-expanded="false"><span class="screen-reader-text">
     89                            <?php
     90                            /* translators: Hidden accessibility text. */
     91                            _e( 'Help' );
     92                            ?>
     93                        </span></button>
    8494                    <# } #>
    8595                <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.