diff --git a/src/wp-admin/comment.php b/src/wp-admin/comment.php index b434dd0ea2..ee7a514be4 100644 --- a/src/wp-admin/comment.php +++ b/src/wp-admin/comment.php @@ -209,6 +209,7 @@ switch ( $action ) { __( '%1$s at %2$s' ), /* translators: Comment date format. See https://secure.php.net/date */ get_comment_date( __( 'Y/m/d' ), $comment ), + /* translators: Comment time format. See https://secure.php.net/date */ get_comment_date( __( 'g:i a' ), $comment ) ); if ( 'approved' === wp_get_comment_status( $comment ) && ! empty( $comment->comment_post_ID ) ) { diff --git a/src/wp-admin/edit-form-comment.php b/src/wp-admin/edit-form-comment.php index 79d215a923..b0b13636f1 100644 --- a/src/wp-admin/edit-form-comment.php +++ b/src/wp-admin/edit-form-comment.php @@ -103,16 +103,19 @@ if ( 'approved' === wp_get_comment_status( $comment ) && $comment->comment_post_ <div class="misc-pub-section curtime misc-pub-curtime"> <?php -/* translators: Publish box date format, see https://secure.php.net/date */ -$datef = __( 'M j, Y @ H:i' ); +$submitted = sprintf( + /* translators: 1: Comment date, 2: Comment time. */ + __( '%1$s at %2$s' ), + /* translators: Publish box date format, see https://secure.php.net/date */ + date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $comment->comment_date ) ), + /* translators: Publish box time format, see https://secure.php.net/date */ + date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $comment->comment_date ) ) +); ?> <span id="timestamp"> <?php -printf( - /* translators: %s: Comment date. */ - __( 'Submitted on: %s' ), - '<b>' . date_i18n( $datef, strtotime( $comment->comment_date ) ) . '</b>' -); +/* translators: %s: Comment date. */ +printf( __( 'Submitted on: %s' ), '<b>' . $submitted . '</b>' ); ?> </span> <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text"><?php _e( 'Edit date and time' ); ?></span></a> diff --git a/src/wp-admin/includes/class-wp-comments-list-table.php b/src/wp-admin/includes/class-wp-comments-list-table.php index 6bf89d876c..3ab1442d14 100644 --- a/src/wp-admin/includes/class-wp-comments-list-table.php +++ b/src/wp-admin/includes/class-wp-comments-list-table.php @@ -867,6 +867,7 @@ class WP_Comments_List_Table extends WP_List_Table { __( '%1$s at %2$s' ), /* translators: Comment date format. See https://secure.php.net/date */ get_comment_date( __( 'Y/m/d' ), $comment ), + /* translators: Comment time format. See https://secure.php.net/date */ get_comment_date( __( 'g:i a' ), $comment ) ); diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index 69aa8a980f..fa8b60b3eb 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -1615,7 +1615,7 @@ function wp_default_scripts( &$scripts ) { array( 'submittedOn' => __( 'Submitted on:' ), /* translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute. */ - 'dateFormat' => __( '%1$s %2$s, %3$s @ %4$s:%5$s' ), + 'dateFormat' => __( '%1$s %2$s, %3$s at %4$s:%5$s' ), ) );