From 3092f5a63874992a35bbdb98e87710ba2d58e62c Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Tue, 30 Jun 2015 15:38:31 +0000 Subject: [PATCH] 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 --- src/wp-content/themes/twentyfifteen/inc/template-tags.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-content/themes/twentyfifteen/inc/template-tags.php b/src/wp-content/themes/twentyfifteen/inc/template-tags.php index 0a617c098f..57eaba62a1 100644 --- a/src/wp-content/themes/twentyfifteen/inc/template-tags.php +++ b/src/wp-content/themes/twentyfifteen/inc/template-tags.php @@ -119,7 +119,8 @@ function twentyfifteen_entry_meta() { if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; - comments_popup_link( __( 'Leave a comment', 'twentyfifteen' ), __( '1 Comment', 'twentyfifteen' ), __( '% Comments', 'twentyfifteen' ) ); + /* translators: %s: post title */ + comments_popup_link( sprintf( __( 'Leave a comment on %s' ), get_the_title() ) ); echo ''; } }