Make WordPress Core


Ignore:
Timestamp:
02/07/2023 05:08:26 PM (10 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-content/themes/twentynineteen/inc/template-tags.php

    r52929 r55276  
    4444            '<span class="byline">%1$s<span class="screen-reader-text">%2$s</span><span class="author vcard"><a class="url fn n" href="%3$s">%4$s</a></span></span>',
    4545            twentynineteen_get_icon_svg( 'person', 16 ),
     46            /* translators: Hidden accessibility text. */
    4647            __( 'Posted by', 'twentynineteen' ),
    4748            esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
     
    8990                    '<span class="cat-links">%1$s<span class="screen-reader-text">%2$s</span>%3$s</span>',
    9091                    twentynineteen_get_icon_svg( 'archive', 16 ),
     92                    /* translators: Hidden accessibility text. */
    9193                    __( 'Posted in', 'twentynineteen' ),
    9294                    $categories_list
     
    100102                    '<span class="tags-links">%1$s<span class="screen-reader-text">%2$s </span>%3$s</span>',
    101103                    twentynineteen_get_icon_svg( 'tag', 16 ),
     104                    /* translators: Hidden accessibility text. */
    102105                    __( 'Tags:', 'twentynineteen' ),
    103106                    $tags_list
Note: See TracChangeset for help on using the changeset viewer.