Changeset 14407
- Timestamp:
- 05/03/2010 08:37:07 PM (15 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-comments.php
r14374 r14407 317 317 <?php endif; ?> 318 318 <?php if ( 'all' == $comment_status || 'approved' == $comment_status || 'moderated' == $comment_status ): ?> 319 <option value="spam"><?php _e('Mark as Spam'); ?></option>319 <option value="spam"><?php echo _x('Mark as Spam', 'comment'); ?></option> 320 320 <?php endif; ?> 321 321 <?php if ( 'trash' == $comment_status ): ?> 322 322 <option value="untrash"><?php _e('Restore'); ?></option> 323 323 <?php elseif ( 'spam' == $comment_status ): ?> 324 <option value="unspam"><?php _e('Not Spam'); ?></option>324 <option value="unspam"><?php echo _x('Not Spam', 'comment'); ?></option> 325 325 <?php endif; ?> 326 326 <?php if ( 'trash' == $comment_status || 'spam' == $comment_status || !EMPTY_TRASH_DAYS ): ?> … … 414 414 <?php endif; ?> 415 415 <?php if ( 'all' == $comment_status || 'approved' == $comment_status || 'moderated' == $comment_status ): ?> 416 <option value="spam"><?php _e('Mark as Spam'); ?></option>416 <option value="spam"><?php echo _x('Mark as Spam', 'comment'); ?></option> 417 417 <?php endif; ?> 418 418 <?php if ( 'trash' == $comment_status ): ?> … … 422 422 <option value="delete"><?php _e('Delete Permanently'); ?></option> 423 423 <?php elseif ( 'spam' == $comment_status ): ?> 424 <option value="unspam"><?php _e('Not Spam'); ?></option>424 <option value="unspam"><?php echo _x('Not Spam', 'comment'); ?></option> 425 425 <?php else: ?> 426 426 <option value="trash"><?php _e('Move to Trash'); ?></option> -
trunk/wp-admin/includes/dashboard.php
r14374 r14407 329 329 // Spam Comments 330 330 $num = number_format_i18n($num_comm->spam); 331 $text = _n ( 'Spam', 'Spam', $num_comm->spam);331 $text = _nx( 'Spam', 'Spam', $num_comm->spam, 'comment' ); 332 332 if ( current_user_can( 'moderate_comments' ) ) { 333 333 $num = "<a href='edit-comments.php?comment_status=spam'><span class='spam-count'>$num</span></a>"; -
trunk/wp-admin/includes/template.php
r14404 r14407 2111 2111 $actions['spam'] = "<a href='$spam_url' class='delete:the-comment-list:comment-$comment->comment_ID::spam=1 vim-s vim-destructive' title='" . esc_attr__( 'Mark this comment as spam' ) . "'>" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . '</a>'; 2112 2112 } elseif ( 'spam' == $the_comment_status ) { 2113 $actions['unspam'] = "<a href='$unspam_url' class='delete:the-comment-list:comment-$comment->comment_ID:66cc66:unspam=1 vim-z vim-destructive'>" . _ _( 'Not Spam' ) . '</a>';2113 $actions['unspam'] = "<a href='$unspam_url' class='delete:the-comment-list:comment-$comment->comment_ID:66cc66:unspam=1 vim-z vim-destructive'>" . _x( 'Not Spam', 'comment' ) . '</a>'; 2114 2114 } elseif ( 'trash' == $the_comment_status ) { 2115 2115 $actions['untrash'] = "<a href='$untrash_url' class='delete:the-comment-list:comment-$comment->comment_ID:66cc66:untrash=1 vim-z vim-destructive'>" . __( 'Restore' ) . '</a>'; -
trunk/wp-admin/ms-sites.php
r14374 r14407 114 114 </tr> 115 115 <tr class="form-field"> 116 <th scope="row"><?php _e( 'Registered') ?></th>116 <th scope="row"><?php echo _x( 'Registered', 'site' ) ?></th> 117 117 <td><input name="blog[registered]" type="text" id="blog_registered" value="<?php echo esc_attr( $details->registered ) ?>" size="40" /></td> 118 118 </tr> … … 125 125 if ( ! $is_main_site ) { 126 126 $radio_fields['archived'] = __( 'Archived' ); 127 $radio_fields['spam'] = _ _( 'Spam' );127 $radio_fields['spam'] = _x( 'Spam', 'site' ); 128 128 $radio_fields['deleted'] = __( 'Deleted' ); 129 129 } … … 415 415 <option value="-1" selected="selected"><?php _e( 'Bulk Actions' ); ?></option> 416 416 <option value="delete"><?php _e( 'Delete' ); ?></option> 417 <option value="spam"><?php _e( 'Mark as Spam' ); ?></option>418 <option value="notspam"><?php _e( 'Not Spam' ); ?></option>417 <option value="spam"><?php echo _x( 'Mark as Spam', 'site' ); ?></option> 418 <option value="notspam"><?php echo _x( 'Not Spam', 'site' ); ?></option> 419 419 </select> 420 420 <input type="submit" value="<?php esc_attr_e( 'Apply' ); ?>" name="doaction" id="doaction" class="button-secondary action" /> … … 449 449 'blogname' => $blogname_columns, 450 450 'lastupdated' => __( 'Last Updated'), 451 'registered' => _ _( 'Registered' ),451 'registered' => _x( 'Registered', 'site' ), 452 452 'users' => __( 'Users' ) 453 453 ); … … 490 490 <tbody id="the-site-list" class="list:site"> 491 491 <?php 492 $status_list = array( 'archived' => array( 'site-archived', __( 'Archived' ) ), 'spam' => array( 'site-spammed', _ _( 'Spam' ) ), 'deleted' => array( 'site-deleted', __( 'Deleted' ) ), 'mature' => array( 'site-mature', __( 'Mature' ) ) );492 $status_list = array( 'archived' => array( 'site-archived', __( 'Archived' ) ), 'spam' => array( 'site-spammed', _x( 'Spam', 'site' ) ), 'deleted' => array( 'site-deleted', __( 'Deleted' ) ), 'mature' => array( 'site-mature', __( 'Mature' ) ) ); 493 493 if ( $blog_list ) { 494 494 $class = ''; … … 535 535 <?php 536 536 if ( 'list' != $mode ) 537 echo '<p>' . sprintf( _x( '%1$s – <em>%2$s ', '%1$s: site name. %2$s: site tagline.' ), get_blog_option( $blog['blog_id'], 'blogname' ), get_blog_option( $blog['blog_id'], 'blogdescription ' ) ) . '</em></p>';537 echo '<p>' . sprintf( _x( '%1$s – <em>%2$s</em>', '%1$s: site name. %2$s: site tagline.' ), get_blog_option( $blog['blog_id'], 'blogname' ), get_blog_option( $blog['blog_id'], 'blogdescription ' ) ) . '</p>'; 538 538 539 539 // Preordered. … … 558 558 $actions['unarchive'] = '<span class="archive"><a href="' . esc_url( admin_url( 'ms-edit.php?action=confirm&action2=unarchiveblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( 'You are about to unarchive the site %s.' ), $blogname ) ) ) ) . '">' . __( 'Unarchive' ) . '</a></span>'; 559 559 else 560 $actions['archive'] = '<span class="archive"><a href="' . esc_url( admin_url( 'ms-edit.php?action=confirm&action2=archiveblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( 'You are about to archive the site %s.' ), $blogname ) ) ) ) . '">' . _ _( 'Archive' ) . '</a></span>';560 $actions['archive'] = '<span class="archive"><a href="' . esc_url( admin_url( 'ms-edit.php?action=confirm&action2=archiveblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( 'You are about to archive the site %s.' ), $blogname ) ) ) ) . '">' . _x( 'Archive', 'verb; site' ) . '</a></span>'; 561 561 562 562 if ( get_blog_status( $blog['blog_id'], 'spam' ) == '1' ) 563 $actions['unspam'] = '<span class="spam"><a href="' . esc_url( admin_url( 'ms-edit.php?action=confirm&action2=unspamblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( 'You are about to unspam the site %s.' ), $blogname ) ) ) ) . '">' . _ _( 'Not Spam' ) . '</a></span>';563 $actions['unspam'] = '<span class="spam"><a href="' . esc_url( admin_url( 'ms-edit.php?action=confirm&action2=unspamblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( 'You are about to unspam the site %s.' ), $blogname ) ) ) ) . '">' . _x( 'Not Spam', 'site' ) . '</a></span>'; 564 564 else 565 $actions['spam'] = '<span class="spam"><a href="' . esc_url( admin_url( 'ms-edit.php?action=confirm&action2=spamblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( 'You are about to mark the site %s as spam.' ), $blogname ) ) ) ) . '">' . _ _( 'Spam' ) . '</a></span>';565 $actions['spam'] = '<span class="spam"><a href="' . esc_url( admin_url( 'ms-edit.php?action=confirm&action2=spamblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( 'You are about to mark the site %s as spam.' ), $blogname ) ) ) ) . '">' . _x( 'Spam', 'site' ) . '</a></span>'; 566 566 567 567 $actions['delete'] = '<span class="delete"><a href="' . esc_url( admin_url( 'ms-edit.php?action=confirm&action2=deleteblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( 'You are about to delete the site %s.' ), $blogname ) ) ) ) . '">' . __( 'Delete' ) . '</a></span>'; … … 666 666 <option value="-1" selected="selected"><?php _e( 'Bulk Actions' ); ?></option> 667 667 <option value="delete"><?php _e( 'Delete' ); ?></option> 668 <option value="spam"><?php _e( 'Mark as Spam' ); ?></option>669 <option value="notspam"><?php _e( 'Not Spam' ); ?></option>668 <option value="spam"><?php echo _x( 'Mark as Spam', 'site' ); ?></option> 669 <option value="notspam"><?php echo _x( 'Not Spam', 'site' ); ?></option> 670 670 </select> 671 671 <input type="submit" value="<?php esc_attr_e( 'Apply' ); ?>" name="doaction2" id="doaction2" class="button-secondary action" /> -
trunk/wp-admin/ms-users.php
r14404 r14407 131 131 <option value="-1" selected="selected"><?php _e( 'Bulk Actions' ); ?></option> 132 132 <option value="delete"><?php _e( 'Delete' ); ?></option> 133 <option value="spam"><?php _e( 'Mark as Spam' ); ?></option>134 <option value="notspam"><?php _e( 'Not Spam' ); ?></option>133 <option value="spam"><?php echo _x( 'Mark as Spam', 'user' ); ?></option> 134 <option value="notspam"><?php echo _x( 'Not Spam', 'user' ); ?></option> 135 135 </select> 136 136 <input type="submit" value="<?php esc_attr_e( 'Apply' ); ?>" name="doaction" id="doaction" class="button-secondary action" /> … … 163 163 'name' => __( 'Name' ), 164 164 'email' => __( 'E-mail' ), 165 'registered' => _ _( 'Registered' ),165 'registered' => _x( 'Registered', 'user' ), 166 166 'blogs' => __( 'Sites' ) 167 167 ); … … 325 325 <option value="-1" selected="selected"><?php _e( 'Bulk Actions' ); ?></option> 326 326 <option value="delete"><?php _e( 'Delete' ); ?></option> 327 <option value="spam"><?php _e( 'Mark as Spam' ); ?></option>328 <option value="notspam"><?php _e( 'Not Spam' ); ?></option>327 <option value="spam"><?php echo _x( 'Mark as Spam', 'user' ); ?></option> 328 <option value="notspam"><?php echo _x( 'Not Spam', 'user' ); ?></option> 329 329 </select> 330 330 <input type="submit" value="<?php esc_attr_e( 'Apply' ); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
Note: See TracChangeset
for help on using the changeset viewer.