Changeset 45926 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 09/01/2019 05:12:43 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r45742 r45926 315 315 foreach ( $users as $user ) { 316 316 $return[] = array( 317 /* translators: 1: user _login, 2: user_email*/317 /* translators: 1: user login, 2: user email address */ 318 318 'label' => sprintf( _x( '%1$s (%2$s)', 'user autocomplete result' ), $user->user_login, $user->user_email ), 319 319 'value' => $user->$field, … … 455 455 'in_moderation' => $counts->moderated, 456 456 'i18n_comments_text' => sprintf( 457 /* translators: %s: number of comments approved*/457 /* translators: %s: number of comments */ 458 458 _n( '%s Comment', '%s Comments', $counts->approved ), 459 459 number_format_i18n( $counts->approved ) 460 460 ), 461 461 'i18n_moderation_text' => sprintf( 462 /* translators: %s: number of comments in moderation*/462 /* translators: %s: number of comments */ 463 463 _n( '%s Comment in moderation', '%s Comments in moderation', $counts->moderated ), 464 464 number_format_i18n( $counts->moderated ) … … 527 527 'in_moderation' => $counts->moderated, 528 528 'i18n_moderation_text' => sprintf( 529 /* translators: %s: number of comments in moderation*/529 /* translators: %s: number of comments */ 530 530 _n( '%s Comment in moderation', '%s Comments in moderation', $counts->moderated ), 531 531 number_format_i18n( $counts->moderated ) … … 914 914 array( 915 915 'what' => 'comment', 916 /* translators: %d: comment ID */ 917 'id' => new WP_Error( 'invalid_comment', sprintf( __( 'Comment %d does not exist' ), $id ) ), 916 'id' => new WP_Error( 917 'invalid_comment', 918 /* translators: %d: comment ID */ 919 sprintf( __( 'Comment %d does not exist' ), $id ) 920 ), 918 921 ) 919 922 ); … … 1302 1305 'in_moderation' => $counts->moderated, 1303 1306 'i18n_comments_text' => sprintf( 1304 /* translators: %s: number of comments approved*/1307 /* translators: %s: number of comments */ 1305 1308 _n( '%s Comment', '%s Comments', $counts->approved ), 1306 1309 number_format_i18n( $counts->approved ) 1307 1310 ), 1308 1311 'i18n_moderation_text' => sprintf( 1309 /* translators: %s: number of comments in moderation*/1312 /* translators: %s: number of comments */ 1310 1313 _n( '%s Comment in moderation', '%s Comments in moderation', $counts->moderated ), 1311 1314 number_format_i18n( $counts->moderated ) … … 1915 1918 $last_user_name = $last_user ? $last_user->display_name : __( 'Someone' ); 1916 1919 1917 /* translators: %s: user who is currently editing the post*/1920 /* translators: %s: user's display name */ 1918 1921 $msg_template = __( 'Saving is disabled: %s is currently editing this post.' ); 1922 1919 1923 if ( $_POST['post_type'] == 'page' ) { 1920 /* translators: %s: user who is currently editing the page */1924 /* translators: %s: user's display name */ 1921 1925 $msg_template = __( 'Saving is disabled: %s is currently editing this page.' ); 1922 1926 } … … 2627 2631 if ( $last_id ) { 2628 2632 $last_user = get_userdata( $last_id ); 2629 /* translators: 1: display_name of last user, 2: date of last edit, 3: time of last edit. */2633 /* translators: 1: user's display name, 2: date of last edit, 3: time of last edit. */ 2630 2634 $last_edited = sprintf( __( 'Last edited by %1$s on %2$s at %3$s' ), esc_html( $last_user->display_name ), $last_date, $last_time ); 2631 2635 } else { … … 3481 3485 array( 3482 3486 'type' => 'not-embeddable', 3483 /* translators: %s: URL which cannot be embedded, between code tags*/3487 /* translators: %s: URL that could not be embedded */ 3484 3488 'message' => sprintf( __( '%s failed to embed.' ), '<code>' . esc_html( $url ) . '</code>' ), 3485 3489 )
Note: See TracChangeset
for help on using the changeset viewer.