Skip to content

Commit aaeb4e8

Browse files
committed
I18N: Add translator context to the use of "Reply".
Props timse201, audrasjb, sanketparmar. Fixes #64984. git-svn-id: https://develop.svn.wordpress.org/trunk@62324 602fd350-edb4-49c9-b593-d223f7449a82
1 parent fcfe22a commit aaeb4e8

4 files changed

Lines changed: 11 additions & 6 deletions

File tree

src/js/_enqueues/admin/edit-comments.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var getCount, updateCount, updateCountText, updatePending, updateApproved,
1414
updateHtmlTitle, updateDashboardText, updateInModerationText, adminTitle = document.title,
1515
isDashboard = $('#dashboard_right_now').length,
1616
titleDiv, titleRegEx,
17-
__ = wp.i18n.__;
17+
__ = wp.i18n.__, _x = wp.i18n._x;
1818

1919
/**
2020
* Extracts a number from the content of a jQuery element.
@@ -370,7 +370,8 @@ window.setCommentsList = function() {
370370

371371
} else {
372372
if ( settings.data.id == replyID )
373-
replyButton.text( __( 'Reply' ) );
373+
/* translators: Comment reply button text. */
374+
replyButton.text( _x( 'Reply', 'verb' ) );
374375

375376
c.find( '.row-actions span.view' ).removeClass( 'hidden' ).end()
376377
.find( 'div.comment_status' ).html( '1' );
@@ -1012,7 +1013,8 @@ window.commentReply = {
10121013
if ( c.hasClass('unapproved') ) {
10131014
replyButton.text( __( 'Approve and Reply' ) );
10141015
} else {
1015-
replyButton.text( __( 'Reply' ) );
1016+
/* translators: Comment reply button text. */
1017+
replyButton.text( _x( 'Reply', 'verb' ) );
10161018
}
10171019

10181020
$('#replyrow').fadeIn(300, function(){ $(this).show(); });

src/wp-admin/includes/class-wp-comments-list-table.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,8 @@ protected function handle_row_actions( $item, $column_name, $primary ) {
875875
'replyto',
876876
'vim-r comment-inline',
877877
esc_attr__( 'Reply to this comment' ),
878-
__( 'Reply' )
878+
/* translators: Comment reply button text. */
879+
_x( 'Reply', 'verb' )
879880
);
880881
}
881882

src/wp-admin/includes/dashboard.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,8 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
772772
$comment->comment_ID,
773773
$comment->comment_post_ID,
774774
esc_attr__( 'Reply to this comment' ),
775-
__( 'Reply' )
775+
/* translators: Comment reply button text. */
776+
_x( 'Reply', 'verb' )
776777
);
777778

778779
$actions['spam'] = sprintf(

src/wp-includes/comment-template.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1756,7 +1756,8 @@ function get_comment_reply_link( $args = array(), $comment = null, $post = null
17561756
$defaults = array(
17571757
'add_below' => 'comment',
17581758
'respond_id' => 'respond',
1759-
'reply_text' => __( 'Reply' ),
1759+
/* translators: Comment reply button text. */
1760+
'reply_text' => _x( 'Reply', 'verb' ),
17601761
/* translators: Comment reply button text. %s: Comment author name. */
17611762
'reply_to_text' => __( 'Reply to %s' ),
17621763
'login_text' => __( 'Log in to Reply' ),

0 commit comments

Comments
 (0)