Twenty Fifteen: Use default strings for comments link.

Also adds context for screen readers, like in default strings.

Props pavelevap for initial patch.
Fixes #32001.



git-svn-id: https://develop.svn.wordpress.org/trunk@33003 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Konstantin Obenland 2015-06-30 15:38:31 +00:00
parent e681cb8ba7
commit 3092f5a638

View File

@ -119,7 +119,8 @@ function twentyfifteen_entry_meta() {
if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
echo '<span class="comments-link">';
comments_popup_link( __( 'Leave a comment', 'twentyfifteen' ), __( '1 Comment', 'twentyfifteen' ), __( '% Comments', 'twentyfifteen' ) );
/* translators: %s: post title */
comments_popup_link( sprintf( __( 'Leave a comment<span class="screen-reader-text"> on %s</span>' ), get_the_title() ) );
echo '</span>';
}
}