Make WordPress Core


Ignore:
Timestamp:
02/07/2023 05:08:26 PM (17 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/image.php

    r48782 r55276  
    5454                                'link_before' => '<span>',
    5555                                'link_after'  => '</span>',
     56                                /* translators: Hidden accessibility text. */
    5657                                'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'twentynineteen' ) . ' </span>%',
    5758                                'separator'   => '<span class="screen-reader-text">, </span>',
     
    6869                        printf(
    6970                            '<span class="full-size-link"><span class="screen-reader-text">%1$s</span><a href="%2$s">%3$s &times; %4$s</a></span>',
     71                            /* translators: Hidden accessibility text. */
    7072                            _x( 'Full size', 'Used before full size attachment link.', 'twentynineteen' ),
    7173                            esc_url( wp_get_attachment_url() ),
Note: See TracChangeset for help on using the changeset viewer.