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-includes/customize/class-wp-customize-nav-menus-panel.php

    r54419 r55276  
    7070        <li class="panel-meta customize-info accordion-section <# if ( ! data.description ) { #> cannot-expand<# } #>">
    7171            <button type="button" class="customize-panel-back" tabindex="-1">
    72                 <span class="screen-reader-text"><?php _e( 'Back' ); ?></span>
     72                <span class="screen-reader-text">
     73                    <?php
     74                    /* translators: Hidden accessibility text. */
     75                    _e( 'Back' );
     76                    ?>
     77                </span>
    7378            </button>
    7479            <div class="accordion-section-title">
     
    8085                </span>
    8186                <button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false">
    82                     <span class="screen-reader-text"><?php _e( 'Help' ); ?></span>
     87                    <span class="screen-reader-text">
     88                        <?php
     89                        /* translators: Hidden accessibility text. */
     90                        _e( 'Help' );
     91                        ?>
     92                    </span>
    8393                </button>
    8494                <button type="button" class="customize-screen-options-toggle" aria-expanded="false">
    85                     <span class="screen-reader-text"><?php _e( 'Menu Options' ); ?></span>
     95                    <span class="screen-reader-text">
     96                        <?php
     97                        /* translators: Hidden accessibility text. */
     98                        _e( 'Menu Options' );
     99                        ?>
     100                    </span>
    86101                </button>
    87102            </div>
Note: See TracChangeset for help on using the changeset viewer.