[wp-trac] [WordPress Trac] #40486: Standard Themes: Logic for translated strings in connection with Screen Reader text can be improved
WordPress Trac
noreply at wordpress.org
Wed Nov 8 21:55:57 UTC 2023
#40486: Standard Themes: Logic for translated strings in connection with Screen
Reader text can be improved
---------------------------+------------------------------
Reporter: Presskopp | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+------------------------------
Comment (by joedolson):
No, there's no advantage to wrapping the title in quotation punctuation in
the screen reader text. Some screen readers might read them out or
interpret them as a pause, but that's heavily dependent on screen reader
configuration and voice synthesizer. I wouldn't consider it an advantage
in any case; just a difference. If a pause is desired, then more
consistent approach would be to use a colon, e.g.:
{{{
the_content(
sprintf(
/* translators: %s: Post title. Only visible to screen readers. */
__( 'Continue reading<span class="screen-reader-text">:
%s</span>', 'twentyseventeen' ),
get_the_title()
)
);
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40486#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list