Make WordPress Core


Ignore:
Timestamp:
02/07/2023 05:08:26 PM (2 years 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-background-position-control.php

    r51637 r55276  
    9191        <div class="customize-control-content">
    9292            <fieldset>
    93                 <legend class="screen-reader-text"><span><?php _e( 'Image Position' ); ?></span></legend>
     93                <legend class="screen-reader-text"><span>
     94                    <?php
     95                    /* translators: Hidden accessibility text. */
     96                    _e( 'Image Position' );
     97                    ?>
     98                </span></legend>
    9499                <div class="background-position-control">
    95100                <?php foreach ( $options as $group ) : ?>
Note: See TracChangeset for help on using the changeset viewer.