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-admin/setup-config.php

    r55110 r55276  
    158158        }
    159159        ?>
    160 <h1 class="screen-reader-text"><?php _e( 'Before getting started' ); ?></h1>
     160<h1 class="screen-reader-text">
     161        <?php
     162        /* translators: Hidden accessibility text. */
     163        _e( 'Before getting started' );
     164        ?>
     165</h1>
    161166<p><?php _e( 'Welcome to WordPress. Before getting started, you will need to know the following items.' ); ?></p>
    162167<ol>
     
    208213        $autofocus = wp_is_mobile() ? '' : ' autofocus';
    209214        ?>
    210 <h1 class="screen-reader-text"><?php _e( 'Set up your database connection' ); ?></h1>
     215<h1 class="screen-reader-text">
     216        <?php
     217        /* translators: Hidden accessibility text. */
     218        _e( 'Set up your database connection' );
     219        ?>
     220</h1>
    211221<form method="post" action="setup-config.php?step=2">
    212222    <p><?php _e( 'Below you should enter your database connection details. If you are not sure about these, contact your host.' ); ?></p>
     
    478488            if ( false !== $handle ) :
    479489                ?>
    480 <h1 class="screen-reader-text"><?php _e( 'Successful database connection' ); ?></h1>
     490<h1 class="screen-reader-text">
     491                <?php
     492                /* translators: Hidden accessibility text. */
     493                _e( 'Successful database connection' );
     494                ?>
     495</h1>
    481496<p><?php _e( 'All right, sparky! You&#8217;ve made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to&hellip;' ); ?></p>
    482497
Note: See TracChangeset for help on using the changeset viewer.