[wp-trac] [WordPress Trac] #40486: Twenty Seventeen: Logic for translated strings in connection with Screen Reader text can be improved
WordPress Trac
noreply at wordpress.org
Tue Jul 10 14:03:05 UTC 2018
#40486: Twenty Seventeen: 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 joyously):
Would this fix it?
{{{
the_content( sprintf(
/* translators: %s: Name of current post for Continue link, only visible
to screen readers, with space before and after */
esc_html__( 'Continue reading%s', 'twentyseventeen' ),
'<span class="screen-reader-text"> "' . wp_strip_all_tags(
get_the_title() ) . '" </span>'
) );
}}}
and
{{{
edit_post_link(
sprintf(
/* translators: %s: Name of current post for edit link, only visible to
screen readers, with space before and after */
esc_html__( 'Edit%s', 'twentyseventeen' ),
'<span class="screen-reader-text"> "' . wp_strip_all_tags(
get_the_title() ) . '" </span>'
),
' <span class="edit-link">',
'</span>'
);
}}}
It doesn't address the capitalization problem though.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40486#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list