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. Built from https://develop.svn.wordpress.org/trunk@55276 git-svn-id: http://core.svn.wordpress.org/trunk@54809 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -193,7 +193,7 @@ function the_block_template_skip_link() {
|
||||
skipLink = document.createElement( 'a' );
|
||||
skipLink.classList.add( 'skip-link', 'screen-reader-text' );
|
||||
skipLink.href = '#' + skipLinkTargetID;
|
||||
skipLink.innerHTML = '<?php esc_html_e( 'Skip to content' ); ?>';
|
||||
skipLink.innerHTML = '<?php /* translators: Hidden accessibility text. */ esc_html_e( 'Skip to content' ); ?>';
|
||||
|
||||
// Inject the skip link.
|
||||
sibling.parentElement.insertBefore( skipLink, sibling );
|
||||
|
||||
Reference in New Issue
Block a user