Make WordPress Core


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

    r52013 r55276  
    5151                    'prev_text'          => __( 'Previous page', 'twentyfifteen' ),
    5252                    'next_text'          => __( 'Next page', 'twentyfifteen' ),
     53                    /* translators: Hidden accessibility text. */
    5354                    'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>',
    5455                )
Note: See TracChangeset for help on using the changeset viewer.