Changeset 43598 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 08/30/2018 01:35:27 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r43571 r43598 391 391 'in_moderation' => $counts->moderated, 392 392 'i18n_comments_text' => sprintf( 393 /* translators: %s: number of comments approved */ 393 394 _n( '%s Comment', '%s Comments', $counts->approved ), 394 395 number_format_i18n( $counts->approved ) 395 396 ), 396 397 'i18n_moderation_text' => sprintf( 398 /* translators: %s: number of comments in moderation */ 397 399 _nx( '%s in moderation', '%s in moderation', $counts->moderated, 'comments' ), 398 400 number_format_i18n( $counts->moderated ) … … 453 455 'status' => $comment ? $comment->comment_approved : '', 454 456 'postId' => $comment ? $comment->comment_post_ID : '', 457 /* translators: %s: number of comments */ 455 458 'total_items_i18n' => sprintf( _n( '%s item', '%s items', $total ), number_format_i18n( $total ) ), 456 459 'total_pages' => ceil( $total / $per_page ), … … 836 839 array( 837 840 'what' => 'comment', 841 /* translators: %d: comment ID */ 838 842 'id' => new WP_Error( 'invalid_comment', sprintf( __( 'Comment %d does not exist' ), $id ) ), 839 843 ) … … 1215 1219 'in_moderation' => $counts->moderated, 1216 1220 'i18n_comments_text' => sprintf( 1221 /* translators: %s: number of comments approved */ 1217 1222 _n( '%s Comment', '%s Comments', $counts->approved ), 1218 1223 number_format_i18n( $counts->approved ) 1219 1224 ), 1220 1225 'i18n_moderation_text' => sprintf( 1226 /* translators: %s: number of comments moderated */ 1221 1227 _nx( '%s in moderation', '%s in moderation', $counts->moderated, 'comments' ), 1222 1228 number_format_i18n( $counts->moderated ) … … 1814 1820 $last_user = get_userdata( $last ); 1815 1821 $last_user_name = $last_user ? $last_user->display_name : __( 'Someone' ); 1816 printf( $_POST['post_type'] == 'page' ? __( 'Saving is disabled: %s is currently editing this page.' ) : __( 'Saving is disabled: %s is currently editing this post.' ), esc_html( $last_user_name ) ); 1822 1823 /* translators: %s: user who is currently editing the post */ 1824 $msg_template = __( 'Saving is disabled: %s is currently editing this post.' ); 1825 if ( $_POST['post_type'] == 'page' ) { 1826 /* translators: %s: user who is currently editing the page */ 1827 $msg_template = __( 'Saving is disabled: %s is currently editing this page.' ); 1828 } 1829 1830 printf( $msg_template, esc_html( $last_user_name ) ); 1817 1831 wp_die(); 1818 1832 } … … 2509 2523 2510 2524 if ( $last_id = get_post_meta( $post_id, '_edit_last', true ) ) { 2511 $last_user = get_userdata( $last_id ); 2525 $last_user = get_userdata( $last_id ); 2526 /* translators: 1: display_name of last user, 2: date of last edit, 3: time of last edit. */ 2512 2527 $last_edited = sprintf( __( 'Last edited by %1$s on %2$s at %3$s' ), esc_html( $last_user->display_name ), $last_date, $last_time ); 2513 2528 } else { 2529 /* translators: 1: date of last edit, 2: time of last edit. */ 2514 2530 $last_edited = sprintf( __( 'Last edited on %1$s at %2$s' ), $last_date, $last_time ); 2515 2531 } … … 3337 3353 array( 3338 3354 'type' => 'not-embeddable', 3355 /* translators: %s: URL which cannot be embedded, between code tags */ 3339 3356 'message' => sprintf( __( '%s failed to embed.' ), '<code>' . esc_html( $url ) . '</code>' ), 3340 3357 )
Note: See TracChangeset
for help on using the changeset viewer.