-if ( $post_id )
- $title = sprintf( __( 'Comments on “%s”' ), wp_html_excerpt( _draft_or_post_title( $post_id ), 50, '…' ) );
-else
- $title = __('Comments');
+if ( $post_id ) {
+ $comments_count = wp_count_comments( $post_id );
+ $draft_or_post_title = wp_html_excerpt( _draft_or_post_title( $post_id ), 50, '…' );
+ if ( $comments_count->moderated > 0 ) {
+ /* translators: 1: comments count 2: post title */
+ $title = sprintf( __( 'Comments (%1$s) on “%2$s”' ),
+ number_format_i18n( $comments_count->moderated ),
+ $draft_or_post_title
+ );
+ } else {
+ /* translators: %s: post title */
+ $title = sprintf( __( 'Comments on “%s”' ),
+ $draft_or_post_title
+ );
+ }
+} else {
+ $comments_count = wp_count_comments();
+ if ( $comments_count->moderated > 0 ) {
+ /* translators: %s: comments count */
+ $title = sprintf( __( 'Comments (%s)' ),
+ number_format_i18n( $comments_count->moderated )
+ );
+ } else {
+ $title = __( 'Comments' );
+ }
+}