Make WordPress Core

Changeset 35902


Ignore:
Timestamp:
12/13/2015 07:10:04 PM (10 years ago)
Author:
SergeyBiryukov
Message:

I18N: Use better context for comment statuses.

See #35054.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-comment.php

    r35160 r35902  
    8383<fieldset class="misc-pub-section misc-pub-comment-status" id="comment-status-radio">
    8484<legend class="screen-reader-text"><?php _e( 'Comment status' ); ?></legend>
    85 <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 />
    86 <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 />
    87 <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>
     85<label class="approved"><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _ex( 'Approved', 'comment status' ); ?></label><br />
     86<label class="waiting"><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _ex( 'Pending', 'comment status' ); ?></label><br />
     87<label class="spam"><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _ex( 'Spam', 'comment status' ); ?></label>
    8888</fieldset>
    8989
  • trunk/src/wp-includes/comment.php

    r35853 r35902  
    232232function get_comment_statuses() {
    233233    $status = array(
    234         'hold'      => __('Unapproved'),
    235         /* translators: comment status  */
    236         'approve'   => _x('Approved', 'adjective'),
    237         /* translators: comment status */
    238         'spam'      => _x('Spam', 'adjective'),
    239         /* translators: comment status */
    240         'trash'     => _x('Trash', 'adjective'),
     234        'hold'      => __( 'Unapproved' ),
     235        'approve'   => _x( 'Approved', 'comment status' ),
     236        'spam'      => _x( 'Spam', 'comment status' ),
     237        'trash'     => _x( 'Trash', 'comment status' ),
    241238    );
    242239
Note: See TracChangeset for help on using the changeset viewer.