WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/14/2010 09:46:25 PM (11 years ago)
Author:
nacin
Message:

Introduce _ex(), a hybrid between _e() and _x() -- translate with context, then echo. props westi, see #13395.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-comments.php

    r14512 r14647  
    317317<?php endif; ?>
    318318<?php if ( 'all' == $comment_status || 'approved' == $comment_status || 'moderated' == $comment_status ): ?>
    319 <option value="spam"><?php echo _x('Mark as Spam', 'comment'); ?></option>
     319<option value="spam"><?php _ex('Mark as Spam', 'comment'); ?></option>
    320320<?php endif; ?>
    321321<?php if ( 'trash' == $comment_status ): ?>
    322322<option value="untrash"><?php _e('Restore'); ?></option>
    323323<?php elseif ( 'spam' == $comment_status ): ?>
    324 <option value="unspam"><?php echo _x('Not Spam', 'comment'); ?></option>
     324<option value="unspam"><?php _ex('Not Spam', 'comment'); ?></option>
    325325<?php endif; ?>
    326326<?php if ( 'trash' == $comment_status || 'spam' == $comment_status || !EMPTY_TRASH_DAYS ): ?>
     
    417417<?php endif; ?>
    418418<?php if ( 'all' == $comment_status || 'approved' == $comment_status || 'moderated' == $comment_status ): ?>
    419 <option value="spam"><?php echo _x('Mark as Spam', 'comment'); ?></option>
     419<option value="spam"><?php _ex('Mark as Spam', 'comment'); ?></option>
    420420<?php endif; ?>
    421421<?php if ( 'trash' == $comment_status ): ?>
     
    425425<option value="delete"><?php _e('Delete Permanently'); ?></option>
    426426<?php elseif ( 'spam' == $comment_status ): ?>
    427 <option value="unspam"><?php echo _x('Not Spam', 'comment'); ?></option>
     427<option value="unspam"><?php _ex('Not Spam', 'comment'); ?></option>
    428428<?php else: ?>
    429429<option value="trash"><?php _e('Move to Trash'); ?></option>
Note: See TracChangeset for help on using the changeset viewer.