Changeset 45926 for trunk/src/wp-admin/edit-comments.php
- Timestamp:
- 09/01/2019 05:12:43 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-comments.php
r45674 r45926 153 153 $draft_or_post_title = wp_html_excerpt( _draft_or_post_title( $post_id ), 50, '…' ); 154 154 if ( $comments_count->moderated > 0 ) { 155 /* translators: 1: comments count, 2: post title */156 155 $title = sprintf( 156 /* translators: 1: comments count, 2: post title */ 157 157 __( 'Comments (%1$s) on “%2$s”' ), 158 158 number_format_i18n( $comments_count->moderated ), … … 160 160 ); 161 161 } else { 162 /* translators: %s: post title */163 162 $title = sprintf( 163 /* translators: %s: post title */ 164 164 __( 'Comments on “%s”' ), 165 165 $draft_or_post_title … … 169 169 $comments_count = wp_count_comments(); 170 170 if ( $comments_count->moderated > 0 ) { 171 /* translators: %s: comments count */172 171 $title = sprintf( 172 /* translators: %s: comments count */ 173 173 __( 'Comments (%s)' ), 174 174 number_format_i18n( $comments_count->moderated ) … … 226 226 <?php 227 227 if ( $post_id ) { 228 /* translators: %s: link to post */229 228 printf( 229 /* translators: %s: link to post */ 230 230 __( 'Comments on “%s”' ), 231 231 sprintf( … … 244 244 if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { 245 245 echo '<span class="subtitle">'; 246 /* translators: %s: search keywords */247 246 printf( 247 /* translators: %s: search keywords */ 248 248 __( 'Search results for “%s”' ), 249 249 wp_html_excerpt( esc_html( wp_unslash( $_REQUEST['s'] ) ), 50, '…' ) … … 283 283 if ( $approved > 0 || $deleted > 0 || $trashed > 0 || $untrashed > 0 || $spammed > 0 || $unspammed > 0 || $same > 0 ) { 284 284 if ( $approved > 0 ) { 285 /* translators: %s: number of comments approved*/285 /* translators: %s: number of comments */ 286 286 $messages[] = sprintf( _n( '%s comment approved', '%s comments approved', $approved ), $approved ); 287 287 } … … 289 289 if ( $spammed > 0 ) { 290 290 $ids = isset( $_REQUEST['ids'] ) ? $_REQUEST['ids'] : 0; 291 /* translators: %s: number of comments marked as spam*/291 /* translators: %s: number of comments */ 292 292 $messages[] = sprintf( _n( '%s comment marked as spam.', '%s comments marked as spam.', $spammed ), $spammed ) . ' <a href="' . esc_url( wp_nonce_url( "edit-comments.php?doaction=undo&action=unspam&ids=$ids", 'bulk-comments' ) ) . '">' . __( 'Undo' ) . '</a><br />'; 293 293 } 294 294 295 295 if ( $unspammed > 0 ) { 296 /* translators: %s: number of comments restored from the spam*/296 /* translators: %s: number of comments */ 297 297 $messages[] = sprintf( _n( '%s comment restored from the spam', '%s comments restored from the spam', $unspammed ), $unspammed ); 298 298 } … … 300 300 if ( $trashed > 0 ) { 301 301 $ids = isset( $_REQUEST['ids'] ) ? $_REQUEST['ids'] : 0; 302 /* translators: %s: number of comments moved to the Trash*/302 /* translators: %s: number of comments */ 303 303 $messages[] = sprintf( _n( '%s comment moved to the Trash.', '%s comments moved to the Trash.', $trashed ), $trashed ) . ' <a href="' . esc_url( wp_nonce_url( "edit-comments.php?doaction=undo&action=untrash&ids=$ids", 'bulk-comments' ) ) . '">' . __( 'Undo' ) . '</a><br />'; 304 304 } 305 305 306 306 if ( $untrashed > 0 ) { 307 /* translators: %s: number of comments restored from the Trash*/307 /* translators: %s: number of comments */ 308 308 $messages[] = sprintf( _n( '%s comment restored from the Trash', '%s comments restored from the Trash', $untrashed ), $untrashed ); 309 309 } 310 310 311 311 if ( $deleted > 0 ) { 312 /* translators: %s: number of comments permanently deleted*/312 /* translators: %s: number of comments */ 313 313 $messages[] = sprintf( _n( '%s comment permanently deleted', '%s comments permanently deleted', $deleted ), $deleted ); 314 314 }
Note: See TracChangeset
for help on using the changeset viewer.