diff --git a/src/wp-admin/comment.php b/src/wp-admin/comment.php index 4c71f3422f..7131a0c7f3 100644 --- a/src/wp-admin/comment.php +++ b/src/wp-admin/comment.php @@ -69,7 +69,7 @@ case 'editcomment' : $comment_id = absint( $_GET['c'] ); if ( !$comment = get_comment( $comment_id ) ) - comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' ' . __('Go back') . '.', 'javascript:history.go(-1)') ); + comment_footer_die( __( 'Invalid comment ID.' ) . sprintf(' ' . __('Go back') . '.', 'javascript:history.go(-1)') ); if ( !current_user_can( 'edit_comment', $comment_id ) ) comment_footer_die( __('You are not allowed to edit this comment.') ); @@ -123,7 +123,7 @@ case 'spam' : switch ( $action ) { case 'spam' : $caution_msg = __('You are about to mark the following comment as spam:'); - $button = __('Mark as Spam'); + $button = _x( 'Mark as Spam', 'comment' ); break; case 'trash' : $caution_msg = __('You are about to move the following comment to the Trash:'); @@ -177,7 +177,7 @@ if ( $comment->comment_approved != '0' ) { // if not unapproved - + comment_post_ID; @@ -252,7 +252,7 @@ case 'unapprovecomment' : $noredir = isset($_REQUEST['noredir']); if ( !$comment = get_comment($comment_id) ) - comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' ' . __('Go back') . '.', 'edit-comments.php') ); + comment_footer_die( __( 'Invalid comment ID.' ) . sprintf(' ' . __('Go back') . '.', 'edit-comments.php') ); if ( !current_user_can( 'edit_comment', $comment->comment_ID ) ) comment_footer_die( __('You are not allowed to edit comments on this post.') ); diff --git a/src/wp-admin/edit-comments.php b/src/wp-admin/edit-comments.php index 057b0a5d6c..300ede8305 100644 --- a/src/wp-admin/edit-comments.php +++ b/src/wp-admin/edit-comments.php @@ -161,7 +161,7 @@ if ( isset( $_REQUEST['error'] ) ) { $error_msg = ''; switch ( $error ) { case 1 : - $error_msg = __( 'Oops, no comment with this ID.' ); + $error_msg = __( 'Invalid comment ID.' ); break; case 2 : $error_msg = __( 'You are not allowed to edit comments on this post.' ); diff --git a/src/wp-admin/includes/class-wp-comments-list-table.php b/src/wp-admin/includes/class-wp-comments-list-table.php index 93ff8713ff..b7608f379a 100644 --- a/src/wp-admin/includes/class-wp-comments-list-table.php +++ b/src/wp-admin/includes/class-wp-comments-list-table.php @@ -357,8 +357,10 @@ class WP_Comments_List_Table extends WP_List_Table { $columns['author'] = __( 'Author' ); $columns['comment'] = _x( 'Comment', 'column name' ); - if ( !$post_id ) - $columns['response'] = _x( 'In Response To', 'column name' ); + if ( ! $post_id ) { + /* translators: column name or table row header */ + $columns['response'] = __( 'In Response To' ); + } return $columns; }