diff --git a/src/js/_enqueues/admin/edit-comments.js b/src/js/_enqueues/admin/edit-comments.js index 9a3d81a751bd8..78ee78de759ff 100644 --- a/src/js/_enqueues/admin/edit-comments.js +++ b/src/js/_enqueues/admin/edit-comments.js @@ -14,7 +14,7 @@ var getCount, updateCount, updateCountText, updatePending, updateApproved, updateHtmlTitle, updateDashboardText, updateInModerationText, adminTitle = document.title, isDashboard = $('#dashboard_right_now').length, titleDiv, titleRegEx, - __ = wp.i18n.__; + __ = wp.i18n.__, _x = wp.i18n._x; /** * Extracts a number from the content of a jQuery element. @@ -370,7 +370,8 @@ window.setCommentsList = function() { } else { if ( settings.data.id == replyID ) - replyButton.text( __( 'Reply' ) ); + /* translators: Comment reply button text. */ + replyButton.text( _x( 'Reply', 'verb' ) ); c.find( '.row-actions span.view' ).removeClass( 'hidden' ).end() .find( 'div.comment_status' ).html( '1' ); @@ -1012,7 +1013,8 @@ window.commentReply = { if ( c.hasClass('unapproved') ) { replyButton.text( __( 'Approve and Reply' ) ); } else { - replyButton.text( __( 'Reply' ) ); + /* translators: Comment reply button text. */ + replyButton.text( _x( 'Reply', 'verb' ) ); } $('#replyrow').fadeIn(300, function(){ $(this).show(); }); 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 1feaeb3283bcd..b027acb4403ee 100644 --- a/src/wp-admin/includes/class-wp-comments-list-table.php +++ b/src/wp-admin/includes/class-wp-comments-list-table.php @@ -875,7 +875,8 @@ protected function handle_row_actions( $item, $column_name, $primary ) { 'replyto', 'vim-r comment-inline', esc_attr__( 'Reply to this comment' ), - __( 'Reply' ) + /* translators: Comment reply button text. */ + _x( 'Reply', 'verb' ) ); } diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index 5415e5961bf7b..778e3de40326b 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -772,7 +772,8 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) { $comment->comment_ID, $comment->comment_post_ID, esc_attr__( 'Reply to this comment' ), - __( 'Reply' ) + /* translators: Comment reply button text. */ + _x( 'Reply', 'verb' ) ); $actions['spam'] = sprintf( diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php index 0093f12d637e2..43bd68ff972a4 100644 --- a/src/wp-includes/comment-template.php +++ b/src/wp-includes/comment-template.php @@ -1756,7 +1756,8 @@ function get_comment_reply_link( $args = array(), $comment = null, $post = null $defaults = array( 'add_below' => 'comment', 'respond_id' => 'respond', - 'reply_text' => __( 'Reply' ), + /* translators: Comment reply button text. */ + 'reply_text' => _x( 'Reply', 'verb' ), /* translators: Comment reply button text. %s: Comment author name. */ 'reply_to_text' => __( 'Reply to %s' ), 'login_text' => __( 'Log in to Reply' ),