diff --git a/wp-commentsrss2.php b/wp-commentsrss2.php index 8de760d5c..caddaa055 100644 --- a/wp-commentsrss2.php +++ b/wp-commentsrss2.php @@ -20,7 +20,7 @@ if (have_posts()) : if ($i < 1) { $i++; ?> - <?php if (is_single() || is_page()) { echo "Comments on: "; the_title_rss(); } else { bloginfo_rss("name"); echo " Comments"; } ?> + <?php if (is_single() || is_page() ) { printf(__('Comments on: %s'), get_the_title_rss()); } else { printf(__('Comments for %s'), get_bloginfo_rss("name")); } ?> @@ -51,14 +51,21 @@ if (have_posts()) : get_post_custom($comment->comment_post_ID); ?> - by: <?php comment_author_rss() ?> + <?php if ( ! (is_single() || is_page()) ) { + $title = get_the_title($comment->comment_post_ID); + $title = apply_filters('the_title', $title); + $title = apply_filters('the_title_rss', $title); + printf(__('Comment on %1$s by %2$s'), $title, get_comment_author_rss()); + } else { + printf(__('by: %s'), get_comment_author_rss()); + } ?> post_password) && $_COOKIE['wp-postpass'] != $comment->post_password) { ?> - Protected Comments: Please enter your password to view comments. + ]]>