Make WordPress Core


Ignore:
Timestamp:
02/07/2023 05:08:26 PM (21 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/includes/class-wp-privacy-policy-content.php

    r54133 r55276  
    362362                    $url,
    363363                    $label,
    364                     /* translators: Accessibility text. */
     364                    /* translators: Hidden accessibility text. */
    365365                    __( '(opens in a new tab)' )
    366366                );
     
    429429                        <span class="screen-reader-text">
    430430                            <?php
    431                             /* translators: %s: Plugin name. */
     431                            /* translators: Hidden accessibility text. %s: Plugin name. */
    432432                            printf( __( 'Copy suggested policy text from %s.' ), $plugin_name );
    433433                            ?>
Note: See TracChangeset for help on using the changeset viewer.