WordPress.org

Make WordPress Core

Ticket #47832: 47832.3.diff

File 47832.3.diff, 3.8 KB (added by afercia, 6 weeks ago)
  • src/wp-admin/edit-form-advanced.php

     
    167167}
    168168
    169169/* 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);
    171176
    172177$messages['post']       = array(
    173178        0  => '', // Unused. Messages start at index 1.
  • src/wp-admin/includes/meta-boxes.php

     
    194194</div><!-- .misc-pub-section -->
    195195
    196196        <?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' );
    199201        if ( 0 != $post->ID ) {
    200202                if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date
    201203                        /* translators: Post date information. %s: Date on which the post is currently scheduled to be published. */
     
    212214                        /* translators: Post date information. %s: Date on which the post is to be published. */
    213215                        $stamp = __( 'Publish on: <b>%s</b>' );
    214216                }
    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                );
    216222        } else { // draft (no saves, and thus no date specified)
    217223                $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                );
    219229        }
    220230
    221231        if ( ! empty( $args['args']['revisions_count'] ) ) :
  • src/wp-admin/includes/template.php

     
    824824
    825825        echo '<div class="timestamp-wrap">';
    826826        /* 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 );
    828828
    829829        echo '</div><input type="hidden" id="ss" name="ss" value="' . $ss . '" />';
    830830
  • src/wp-includes/script-loader.php

     
    15851585                                'publishOnFuture'    => __( 'Schedule for:' ),
    15861586                                'publishOnPast'      => __( 'Published on:' ),
    15871587                                /* 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' ),
    15891589                                'showcomm'           => __( 'Show more comments' ),
    15901590                                'endcomm'            => __( 'No more comments found.' ),
    15911591                                'publish'            => __( 'Publish' ),