Make WordPress Core


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

    r54739 r55276  
    161161            <button type="button" class="health-check-tab health-check-offscreen-nav-wrapper" aria-haspopup="true">
    162162                <span class="dashicons dashicons-ellipsis"></span>
    163                 <span class="screen-reader-text"><?php _e( 'Toggle extra menu items' ); ?></span>
     163                <span class="screen-reader-text">
     164                    <?php
     165                    /* translators: Hidden accessibility text. */
     166                    _e( 'Toggle extra menu items' );
     167                    ?>
     168                </span>
    164169
    165170                <div class="health-check-offscreen-nav">
Note: See TracChangeset for help on using the changeset viewer.