Ticket #51332: 51332.2.diff
File 51332.2.diff, 15.3 KB (added by , 4 years ago) |
---|
-
src/wp-admin/comment.php
215 215 $submitted = sprintf( 216 216 /* translators: 1: Comment date, 2: Comment time. */ 217 217 __( '%1$s at %2$s' ), 218 /* translators: Comment date format. See https://www.php.net/ date*/218 /* translators: Comment date format. See https://www.php.net/manual/datetime.format.php */ 219 219 get_comment_date( __( 'Y/m/d' ), $comment ), 220 /* translators: Comment time format. See https://www.php.net/ date*/220 /* translators: Comment time format. See https://www.php.net/manual/datetime.format.php */ 221 221 get_comment_date( __( 'g:i a' ), $comment ) 222 222 ); 223 223 if ( 'approved' === wp_get_comment_status( $comment ) && ! empty( $comment->comment_post_ID ) ) { -
src/wp-admin/edit-form-advanced.php
171 171 $scheduled_date = sprintf( 172 172 /* translators: Publish box date string. 1: Date, 2: Time. */ 173 173 __( '%1$s at %2$s' ), 174 /* translators: Publish box date format, see https://www.php.net/ date*/174 /* translators: Publish box date format, see https://www.php.net/manual/datetime.format.php */ 175 175 date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $post->post_date ) ), 176 /* translators: Publish box time format, see https://www.php.net/ date*/176 /* translators: Publish box time format, see https://www.php.net/manual/datetime.format.php */ 177 177 date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $post->post_date ) ) 178 178 ); 179 179 -
src/wp-admin/edit-form-comment.php
124 124 $submitted = sprintf( 125 125 /* translators: 1: Comment date, 2: Comment time. */ 126 126 __( '%1$s at %2$s' ), 127 /* translators: Publish box date format, see https://www.php.net/ date*/127 /* translators: Publish box date format, see https://www.php.net/manual/datetime.format.php */ 128 128 date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $comment->comment_date ) ), 129 /* translators: Publish box time format, see https://www.php.net/ date*/129 /* translators: Publish box time format, see https://www.php.net/manual/datetime.format.php */ 130 130 date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $comment->comment_date ) ) 131 131 ); 132 132 ?> -
src/wp-admin/includes/ajax-actions.php
2205 2205 if ( '0000-00-00 00:00:00' === $post->post_date ) { 2206 2206 $time = ''; 2207 2207 } else { 2208 /* translators: Date format in table columns, see https://www.php.net/ date*/2208 /* translators: Date format in table columns, see https://www.php.net/manual/datetime.format.php */ 2209 2209 $time = mysql2date( __( 'Y/m/d' ), $post->post_date ); 2210 2210 } 2211 2211 -
src/wp-admin/includes/class-wp-comments-list-table.php
955 955 $submitted = sprintf( 956 956 /* translators: 1: Comment date, 2: Comment time. */ 957 957 __( '%1$s at %2$s' ), 958 /* translators: Comment date format. See https://www.php.net/ date*/958 /* translators: Comment date format. See https://www.php.net/manual/datetime.format.php */ 959 959 get_comment_date( __( 'Y/m/d' ), $comment ), 960 /* translators: Comment time format. See https://www.php.net/ date*/960 /* translators: Comment time format. See https://www.php.net/manual/datetime.format.php */ 961 961 get_comment_date( __( 'g:i a' ), $comment ) 962 962 ); 963 963 -
src/wp-admin/includes/class-wp-community-events.php
375 375 * so that users can tell at a glance if the event is on a day they 376 376 * are available, without having to open the link. 377 377 */ 378 /* translators: Date format for upcoming events on the dashboard. Include the day of the week. See https://www.php.net/ date*/378 /* translators: Date format for upcoming events on the dashboard. Include the day of the week. See https://www.php.net/manual/datetime.format.php */ 379 379 $formatted_date = date_i18n( __( 'l, M j, Y' ), $timestamp ); 380 380 $formatted_time = date_i18n( get_option( 'time_format' ), $timestamp ); 381 381 … … 384 384 $formatted_end_date = date_i18n( __( 'l, M j, Y' ), $end_timestamp ); 385 385 386 386 if ( 'meetup' !== $event['type'] && $formatted_end_date !== $formatted_date ) { 387 /* translators: Upcoming events month format. See https://www.php.net/ date*/387 /* translators: Upcoming events month format. See https://www.php.net/manual/datetime.format.php */ 388 388 $start_month = date_i18n( _x( 'F', 'upcoming events month format' ), $timestamp ); 389 389 $end_month = date_i18n( _x( 'F', 'upcoming events month format' ), $end_timestamp ); 390 390 … … 393 393 /* translators: Date string for upcoming events. 1: Month, 2: Starting day, 3: Ending day, 4: Year. */ 394 394 __( '%1$s %2$d–%3$d, %4$d' ), 395 395 $start_month, 396 /* translators: Upcoming events day format. See https://www.php.net/ date*/396 /* translators: Upcoming events day format. See https://www.php.net/manual/datetime.format.php */ 397 397 date_i18n( _x( 'j', 'upcoming events day format' ), $timestamp ), 398 398 date_i18n( _x( 'j', 'upcoming events day format' ), $end_timestamp ), 399 /* translators: Upcoming events year format. See https://www.php.net/ date*/399 /* translators: Upcoming events year format. See https://www.php.net/manual/datetime.format.php */ 400 400 date_i18n( _x( 'Y', 'upcoming events year format' ), $timestamp ) 401 401 ); 402 402 } else { -
src/wp-admin/includes/class-wp-posts-list-table.php
1081 1081 $t_time = sprintf( 1082 1082 /* translators: 1: Post date, 2: Post time. */ 1083 1083 __( '%1$s at %2$s' ), 1084 /* translators: Post date format. See https://www.php.net/ date*/1084 /* translators: Post date format. See https://www.php.net/manual/datetime.format.php */ 1085 1085 get_the_time( __( 'Y/m/d' ), $post ), 1086 /* translators: Post time format. See https://www.php.net/ date*/1086 /* translators: Post time format. See https://www.php.net/manual/datetime.format.php */ 1087 1087 get_the_time( __( 'g:i a' ), $post ) 1088 1088 ); 1089 1089 -
src/wp-admin/includes/dashboard.php
965 965 } elseif ( gmdate( 'Y-m-d', $time ) == $tomorrow ) { 966 966 $relative = __( 'Tomorrow' ); 967 967 } elseif ( gmdate( 'Y', $time ) !== $year ) { 968 /* translators: Date and time format for recent posts on the dashboard, from a different calendar year, see https://www.php.net/ date*/968 /* translators: Date and time format for recent posts on the dashboard, from a different calendar year, see https://www.php.net/manual/datetime.format.php */ 969 969 $relative = date_i18n( __( 'M jS Y' ), $time ); 970 970 } else { 971 /* translators: Date and time format for recent posts on the dashboard, see https://www.php.net/ date*/971 /* translators: Date and time format for recent posts on the dashboard, see https://www.php.net/manual/datetime.format.php */ 972 972 $relative = date_i18n( __( 'M jS' ), $time ); 973 973 } 974 974 -
src/wp-admin/includes/meta-boxes.php
212 212 </div> 213 213 214 214 <?php 215 /* translators: Publish box date string. 1: Date, 2: Time. See https://www.php.net/ date*/215 /* translators: Publish box date string. 1: Date, 2: Time. See https://www.php.net/manual/datetime.format.php */ 216 216 $date_string = __( '%1$s at %2$s' ); 217 /* translators: Publish box date format, see https://www.php.net/ date*/217 /* translators: Publish box date format, see https://www.php.net/manual/datetime.format.php */ 218 218 $date_format = _x( 'M j, Y', 'publish box date format' ); 219 /* translators: Publish box time format, see https://www.php.net/ date*/219 /* translators: Publish box time format, see https://www.php.net/manual/datetime.format.php */ 220 220 $time_format = _x( 'H:i', 'publish box time format' ); 221 221 222 222 if ( 0 !== $post_id ) { … … 404 404 <span id="timestamp"> 405 405 <?php 406 406 $uploaded_on = sprintf( 407 /* translators: Publish box date string. 1: Date, 2: Time. See https://www.php.net/ date*/407 /* translators: Publish box date string. 1: Date, 2: Time. See https://www.php.net/manual/datetime.format.php */ 408 408 __( '%1$s at %2$s' ), 409 /* translators: Publish box date format, see https://www.php.net/ date*/409 /* translators: Publish box date format, see https://www.php.net/manual/datetime.format.php */ 410 410 date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $post->post_date ) ), 411 /* translators: Publish box time format, see https://www.php.net/ date*/411 /* translators: Publish box time format, see https://www.php.net/manual/datetime.format.php */ 412 412 date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $post->post_date ) ) 413 413 ); 414 414 /* translators: Attachment information. %s: Date the attachment was uploaded. */ -
src/wp-admin/includes/misc.php
1246 1246 'message' => __( 'Error while saving.' ), 1247 1247 ); 1248 1248 } else { 1249 /* translators: Draft saved date format, see https://www.php.net/ date*/1249 /* translators: Draft saved date format, see https://www.php.net/manual/datetime.format.php */ 1250 1250 $draft_saved_date_format = __( 'g:i:s a' ); 1251 1251 $response['wp_autosave'] = array( 1252 1252 'success' => true, -
src/wp-admin/includes/schema.php
422 422 'default_ping_status' => 'open', 423 423 'default_pingback_flag' => 1, 424 424 'posts_per_page' => 10, 425 /* translators: Default date format, see https://www.php.net/ date*/425 /* translators: Default date format, see https://www.php.net/manual/datetime.format.php */ 426 426 'date_format' => __( 'F j, Y' ), 427 /* translators: Default time format, see https://www.php.net/ date*/427 /* translators: Default time format, see https://www.php.net/manual/datetime.format.php */ 428 428 'time_format' => __( 'g:i a' ), 429 /* translators: Links last updated date format, see https://www.php.net/ date*/429 /* translators: Links last updated date format, see https://www.php.net/manual/datetime.format.php */ 430 430 'links_updated_date_format' => __( 'F j, Y g:i a' ), 431 431 'comment_moderation' => 0, 432 432 'moderation_notify' => 1, -
src/wp-admin/options-general.php
18 18 19 19 $title = __( 'General Settings' ); 20 20 $parent_file = 'options-general.php'; 21 /* translators: Date and time format for exact current time, mainly about timezones, see https://www.php.net/ date*/21 /* translators: Date and time format for exact current time, mainly about timezones, see https://www.php.net/manual/datetime.format.php */ 22 22 $timezone_format = _x( 'Y-m-d H:i:s', 'timezone date format' ); 23 23 24 24 add_action( 'admin_head', 'options_general_add_js' ); -
src/wp-includes/class-wp-locale.php
359 359 * @since 3.6.0 360 360 */ 361 361 public function _strings_for_pot() { 362 /* translators: Localized date format, see https://www.php.net/ date*/362 /* translators: Localized date format, see https://www.php.net/manual/datetime.format.php */ 363 363 __( 'F j, Y' ); 364 /* translators: Localized time format, see https://www.php.net/ date*/364 /* translators: Localized time format, see https://www.php.net/manual/datetime.format.php */ 365 365 __( 'g:i a' ); 366 /* translators: Localized date and time format, see https://www.php.net/ date*/366 /* translators: Localized date and time format, see https://www.php.net/manual/datetime.format.php */ 367 367 __( 'F j, Y g:i a' ); 368 368 } 369 369 } -
src/wp-includes/post-template.php
1824 1824 return false; 1825 1825 } 1826 1826 1827 /* translators: Revision date format, see https://www.php.net/ date*/1827 /* translators: Revision date format, see https://www.php.net/manual/datetime.format.php */ 1828 1828 $datef = _x( 'F j, Y @ H:i:s', 'revision date format' ); 1829 1829 /* translators: %s: Revision date. */ 1830 1830 $autosavef = __( '%s [Autosave]' ); … … 1866 1866 } 1867 1867 1868 1868 $author = get_the_author_meta( 'display_name', $revision->post_author ); 1869 /* translators: Revision date format, see https://www.php.net/ date*/1869 /* translators: Revision date format, see https://www.php.net/manual/datetime.format.php */ 1870 1870 $datef = _x( 'F j, Y @ H:i:s', 'revision date format' ); 1871 1871 1872 1872 $gravatar = get_avatar( $revision->post_author, 24 ); -
src/wp-includes/script-loader.php
344 344 ), 345 345 ), 346 346 'formats' => array( 347 /* translators: Time format, see https://www.php.net/ date*/347 /* translators: Time format, see https://www.php.net/manual/datetime.format.php */ 348 348 'time' => get_option( 'time_format', __( 'g:i a' ) ), 349 /* translators: Date format, see https://www.php.net/ date*/349 /* translators: Date format, see https://www.php.net/manual/datetime.format.php */ 350 350 'date' => get_option( 'date_format', __( 'F j, Y' ) ), 351 /* translators: Date/Time format, see https://www.php.net/ date*/351 /* translators: Date/Time format, see https://www.php.net/manual/datetime.format.php */ 352 352 'datetime' => __( 'F j, Y g:i a' ), 353 /* translators: Abbreviated date/time format, see https://www.php.net/ date*/353 /* translators: Abbreviated date/time format, see https://www.php.net/manual/datetime.format.php */ 354 354 'datetimeAbbreviated' => __( 'M j, Y g:i a' ), 355 355 ), 356 356 'timezone' => array(