Make WordPress Core


Ignore:
Timestamp:
02/07/2023 05:08:26 PM (18 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-theme-installer-skin.php

    r53426 r55276  
    130130                esc_url( $customize_url ),
    131131                __( 'Live Preview' ),
    132                 /* translators: %s: Theme name. */
     132                /* translators: Hidden accessibility text. %s: Theme name. */
    133133                sprintf( __( 'Live Preview “%s”' ), $name )
    134134            );
     
    140140            esc_url( $activate_link ),
    141141            __( 'Activate' ),
    142             /* translators: %s: Theme name. */
     142            /* translators: Hidden accessibility text. %s: Theme name. */
    143143            sprintf( _x( 'Activate “%s”', 'theme' ), $name )
    144144        );
Note: See TracChangeset for help on using the changeset viewer.