I18N: Use better context for comment statuses.

See #35054.

git-svn-id: https://develop.svn.wordpress.org/trunk@35902 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2015-12-13 19:10:04 +00:00
parent 3068a5b333
commit 4e130ed78f
2 changed files with 7 additions and 10 deletions

View File

@ -82,9 +82,9 @@ if ( $comment->comment_post_ID > 0 ):
<fieldset class="misc-pub-section misc-pub-comment-status" id="comment-status-radio"> <fieldset class="misc-pub-section misc-pub-comment-status" id="comment-status-radio">
<legend class="screen-reader-text"><?php _e( 'Comment status' ); ?></legend> <legend class="screen-reader-text"><?php _e( 'Comment status' ); ?></legend>
<label class="approved"><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php /* translators: comment type radio button */ _ex('Approved', 'adjective') ?></label><br /> <label class="approved"><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _ex( 'Approved', 'comment status' ); ?></label><br />
<label class="waiting"><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php /* translators: comment type radio button */ _ex('Pending', 'adjective') ?></label><br /> <label class="waiting"><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _ex( 'Pending', 'comment status' ); ?></label><br />
<label class="spam"><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php /* translators: comment type radio button */ _ex('Spam', 'adjective'); ?></label> <label class="spam"><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _ex( 'Spam', 'comment status' ); ?></label>
</fieldset> </fieldset>
<div class="misc-pub-section curtime misc-pub-curtime"> <div class="misc-pub-section curtime misc-pub-curtime">

View File

@ -231,13 +231,10 @@ function get_comments( $args = '' ) {
*/ */
function get_comment_statuses() { function get_comment_statuses() {
$status = array( $status = array(
'hold' => __('Unapproved'), 'hold' => __( 'Unapproved' ),
/* translators: comment status */ 'approve' => _x( 'Approved', 'comment status' ),
'approve' => _x('Approved', 'adjective'), 'spam' => _x( 'Spam', 'comment status' ),
/* translators: comment status */ 'trash' => _x( 'Trash', 'comment status' ),
'spam' => _x('Spam', 'adjective'),
/* translators: comment status */
'trash' => _x('Trash', 'adjective'),
); );
return $status; return $status;