Make WordPress Core


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

    r52013 r55276  
    2525<?php wp_body_open(); ?>
    2626<div id="page" class="hfeed site">
    27     <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentyfifteen' ); ?></a>
     27    <a class="skip-link screen-reader-text" href="#content">
     28        <?php
     29        /* translators: Hidden accessibility text. */
     30        _e( 'Skip to content', 'twentyfifteen' );
     31        ?>
     32    </a>
    2833
    2934    <div id="sidebar" class="sidebar">
Note: See TracChangeset for help on using the changeset viewer.