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-admin/widgets-form.php

    r54834 r55276  
    424424        <div class="sidebar-name">
    425425            <button type="button" class="handlediv hide-if-no-js" aria-expanded="true">
    426                 <span class="screen-reader-text"><?php _e( 'Available Widgets' ); ?></span>
     426                <span class="screen-reader-text">
     427                    <?php
     428                    /* translators: Hidden accessibility text. */
     429                    _e( 'Available Widgets' );
     430                    ?>
     431                </span>
    427432                <span class="toggle-indicator" aria-hidden="true"></span>
    428433            </button>
Note: See TracChangeset for help on using the changeset viewer.