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.

git-svn-id: https://develop.svn.wordpress.org/trunk@55276 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2023-02-07 17:08:26 +00:00
parent 86dc3ffe0b
commit 6d7430cfe1
132 changed files with 1558 additions and 328 deletions
+10 -2
View File
@@ -330,7 +330,12 @@ printf(
<th scope="row"><?php _e( 'Permalink structure' ); ?></th>
<td>
<fieldset class="structure-selection">
<legend class="screen-reader-text"><?php _e( 'Permalink structure' ); ?></legend>
<legend class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
_e( 'Permalink structure' );
?>
</legend>
<?php foreach ( $default_structures as $input ) : ?>
<div class="row">
<input id="permalink-input-<?php echo $input['id']; ?>"
@@ -356,7 +361,10 @@ printf(
<label for="custom_selection"><?php _e( 'Custom Structure' ); ?></label>
<p>
<label for="permalink_structure" class="screen-reader-text">
<?php _e( 'Customize permalink structure by selecting available tags' ); ?>
<?php
/* translators: Hidden accessibility text. */
_e( 'Customize permalink structure by selecting available tags' );
?>
</label>
<span class="code">
<code id="permalink-custom"><?php echo $url_base; ?></code>