Ticket #47832: 47832.3.diff
| File 47832.3.diff, 3.8 KB (added by , 6 years ago) |
|---|
-
src/wp-admin/edit-form-advanced.php
167 167 } 168 168 169 169 /* translators: Publish box date format, see https://secure.php.net/date */ 170 $scheduled_date = date_i18n( __( 'M j, Y @ H:i' ), strtotime( $post->post_date ) ); 170 $scheduled_date = sprintf( 171 /* translators: Publish box datetime format. 1: Date, 2: Time. */ 172 __( '%1$s at %2$s' ), 173 date_i18n( _x( 'M j, Y', 'publish box date format. See https://secure.php.net/date' ), strtotime( $post->post_date ) ), 174 date_i18n( _x( 'H:i', 'publish box time format. See https://secure.php.net/date' ), strtotime( $post->post_date ) ) 175 ); 171 176 172 177 $messages['post'] = array( 173 178 0 => '', // Unused. Messages start at index 1. -
src/wp-admin/includes/meta-boxes.php
194 194 </div><!-- .misc-pub-section --> 195 195 196 196 <?php 197 /* translators: Publish box date format, see https://secure.php.net/date */ 198 $datef = __( 'M j, Y @ H:i' ); 197 /* translators: Publish box datetime format. 1: Date, 2: Time. */ 198 $datef = __( '%1$s at %2$s' ); 199 $datef_date = _x( 'M j, Y', 'publish box date format. See https://secure.php.net/date' ); 200 $datef_time = _x( 'H:i', 'publish box time format. See https://secure.php.net/date' ); 199 201 if ( 0 != $post->ID ) { 200 202 if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date 201 203 /* translators: Post date information. %s: Date on which the post is currently scheduled to be published. */ … … 212 214 /* translators: Post date information. %s: Date on which the post is to be published. */ 213 215 $stamp = __( 'Publish on: <b>%s</b>' ); 214 216 } 215 $date = date_i18n( $datef, strtotime( $post->post_date ) ); 217 $date = sprintf( 218 $datef, 219 date_i18n( $datef_date, strtotime( $post->post_date ) ), 220 date_i18n( $datef_time, strtotime( $post->post_date ) ) 221 ); 216 222 } else { // draft (no saves, and thus no date specified) 217 223 $stamp = __( 'Publish <b>immediately</b>' ); 218 $date = date_i18n( $datef, strtotime( current_time( 'mysql' ) ) ); 224 $date = sprintf( 225 $datef, 226 date_i18n( $datef_date, strtotime( current_time( 'mysql' ) ) ), 227 date_i18n( $datef_time, strtotime( current_time( 'mysql' ) ) ) 228 ); 219 229 } 220 230 221 231 if ( ! empty( $args['args']['revisions_count'] ) ) : -
src/wp-admin/includes/template.php
824 824 825 825 echo '<div class="timestamp-wrap">'; 826 826 /* translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute. */ 827 printf( __( '%1$s %2$s, %3$s @%4$s:%5$s' ), $month, $day, $year, $hour, $minute );827 printf( __( '%1$s %2$s, %3$s at %4$s:%5$s' ), $month, $day, $year, $hour, $minute ); 828 828 829 829 echo '</div><input type="hidden" id="ss" name="ss" value="' . $ss . '" />'; 830 830 -
src/wp-includes/script-loader.php
1585 1585 'publishOnFuture' => __( 'Schedule for:' ), 1586 1586 'publishOnPast' => __( 'Published on:' ), 1587 1587 /* translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute. */ 1588 'dateFormat' => __( '%1$s %2$s, %3$s @%4$s:%5$s' ),1588 'dateFormat' => __( '%1$s %2$s, %3$s at %4$s:%5$s' ), 1589 1589 'showcomm' => __( 'Show more comments' ), 1590 1590 'endcomm' => __( 'No more comments found.' ), 1591 1591 'publish' => __( 'Publish' ),