diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php
index 3aac00ba66..fc105feb36 100644
--- a/wp-admin/edit-comments.php
+++ b/wp-admin/edit-comments.php
@@ -117,19 +117,22 @@ 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 ) {
- $title = sprintf(
- __( 'Comments (%s) on “%s”' ),
+ /* 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 {
- $title = sprintf( __( 'Comments on “%s”' ), $draft_or_post_title );
+ /* translators: %s: post title */
+ $title = sprintf( __( 'Comments on “%s”' ),
+ $draft_or_post_title
+ );
}
} else {
$comments_count = wp_count_comments();
if ( $comments_count->moderated > 0 ) {
- $title = sprintf(
- __( 'Comments (%s)' ),
+ /* translators: %s: comments count */
+ $title = sprintf( __( 'Comments (%s)' ),
number_format_i18n( $comments_count->moderated )
);
} else {
@@ -176,19 +179,27 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
%s',
+if ( $post_id ) {
+ /* translators: %s: link to post */
+ printf( __( 'Comments on “%s”' ),
+ sprintf( '%2$s',
get_edit_post_link( $post_id ),
wp_html_excerpt( _draft_or_post_title( $post_id ), 50, '…' )
)
);
-else
+} else {
_e( 'Comments' );
+}
-if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
- echo '' . sprintf( __( 'Search results for “%s”' ), wp_html_excerpt( esc_html( wp_unslash( $_REQUEST['s'] ) ), 50, '…' ) ) . ''; ?>
-
+if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) {
+ echo '
';
+ /* translators: %s: search keywords */
+ printf( __( 'Search results for “%s”' ),
+ wp_html_excerpt( esc_html( wp_unslash( $_REQUEST['s'] ) ), 50, '…' )
+ );
+ echo '';
+}
+?>
0 || $deleted > 0 || $trashed > 0 || $untrashed > 0 || $spammed > 0 || $unspammed > 0 || $same > 0 ) {
- if ( $approved > 0 )
+ if ( $approved > 0 ) {
+ /* translators: %s: number of comments approved */
$messages[] = sprintf( _n( '%s comment approved', '%s comments approved', $approved ), $approved );
+ }
if ( $spammed > 0 ) {
$ids = isset($_REQUEST['ids']) ? $_REQUEST['ids'] : 0;
+ /* translators: %s: number of comments marked as spam */
$messages[] = sprintf( _n( '%s comment marked as spam.', '%s comments marked as spam.', $spammed ), $spammed ) . '
' . __('Undo') . '';
}
- if ( $unspammed > 0 )
+ if ( $unspammed > 0 ) {
+ /* translators: %s: number of comments restored from the spam */
$messages[] = sprintf( _n( '%s comment restored from the spam', '%s comments restored from the spam', $unspammed ), $unspammed );
+ }
if ( $trashed > 0 ) {
$ids = isset($_REQUEST['ids']) ? $_REQUEST['ids'] : 0;
+ /* translators: %s: number of comments moved to the Trash */
$messages[] = sprintf( _n( '%s comment moved to the Trash.', '%s comments moved to the Trash.', $trashed ), $trashed ) . '
' . __('Undo') . '';
}
- if ( $untrashed > 0 )
+ if ( $untrashed > 0 ) {
+ /* translators: %s: number of comments restored from the Trash */
$messages[] = sprintf( _n( '%s comment restored from the Trash', '%s comments restored from the Trash', $untrashed ), $untrashed );
+ }
- if ( $deleted > 0 )
+ if ( $deleted > 0 ) {
+ /* translators: %s: number of comments permanently deleted */
$messages[] = sprintf( _n( '%s comment permanently deleted', '%s comments permanently deleted', $deleted ), $deleted );
+ }
if ( $same > 0 && $comment = get_comment( $same ) ) {
switch ( $comment->comment_approved ) {
diff --git a/wp-includes/version.php b/wp-includes/version.php
index b7a252a94b..cd067f0238 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
-$wp_version = '4.4-beta3-35548';
+$wp_version = '4.4-beta3-35549';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.