Make WordPress Core

Ticket #30864: 30864.2.patch

File 30864.2.patch, 6.0 KB (added by iseulde, 9 years ago)
  • src/wp-admin/admin.php

     
    8989
    9090set_screen_options();
    9191
    92 $date_format = get_option('date_format');
    93 $time_format = get_option('time_format');
     92$date_format = __( 'F j, Y' );
     93$time_format = __( 'g:i a' );
    9494
    9595wp_enqueue_script( 'common' );
    9696
  • src/wp-admin/edit-form-advanced.php

     
    565565        if ( 'auto-draft' != $post->post_status ) {
    566566                echo '<span id="last-edit">';
    567567                if ( $last_user = get_userdata( get_post_meta( $post_ID, '_edit_last', true ) ) ) {
    568                         printf(__('Last edited by %1$s on %2$s at %3$s'), esc_html( $last_user->display_name ), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified));
     568                        printf( __( 'Last edited by %1$s on %2$s at %3$s' ), esc_html( $last_user->display_name ), mysql2date( __( 'F j, Y' ), $post->post_modified ), mysql2date( __( 'g:i a' ), $post->post_modified ) );
    569569                } else {
    570                         printf(__('Last edited on %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified));
     570                        printf( __( 'Last edited on %1$s at %2$s' ), mysql2date( __( 'F j, Y' ), $post->post_modified ), mysql2date( __( 'g:i a' ), $post->post_modified ) );
    571571                }
    572572                echo '</span>';
    573573        } ?>
  • src/wp-admin/includes/ajax-actions.php

     
    21282128        }
    21292129
    21302130        if ( $post ) {
    2131                 $last_date = mysql2date( get_option('date_format'), $post->post_modified );
    2132                 $last_time = mysql2date( get_option('time_format'), $post->post_modified );
     2131                $last_date = mysql2date( __( 'F j, Y' ), $post->post_modified );
     2132                $last_time = mysql2date( __( 'g:i a' ), $post->post_modified );
    21332133        } else {
    2134                 $last_date = date_i18n( get_option('date_format') );
    2135                 $last_time = date_i18n( get_option('time_format') );
     2134                $last_date = date_i18n( __( 'F j, Y' ) );
     2135                $last_time = date_i18n( __( 'g:i a' ) );
    21362136        }
    21372137
    21382138        if ( $last_id = get_post_meta( $post_id, '_edit_last', true ) ) {
  • src/wp-admin/includes/dashboard.php

     
    538538                $title = _draft_or_post_title( $draft->ID );
    539539                echo "<li>\n";
    540540                echo '<div class="draft-title"><a href="' . esc_url( $url ) . '" title="' . esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $title ) ) . '">' . esc_html( $title ) . '</a>';
    541                 echo '<time datetime="' . get_the_time( 'c', $draft ) . '">' . get_the_time( get_option( 'date_format' ), $draft ) . '</time></div>';
     541                echo '<time datetime="' . get_the_time( 'c', $draft ) . '">' . get_the_time( __( 'F j, Y' ), $draft ) . '</time></div>';
    542542                if ( $the_content = wp_trim_words( $draft->post_content, 10 ) ) {
    543543                        echo '<p>' . $the_content . '</p>';
    544544                }
  • src/wp-admin/includes/media.php

     
    14421442                        <td>
    14431443                        <p><strong>" . __('File name:') . "</strong> $filename</p>
    14441444                        <p><strong>" . __('File type:') . "</strong> $post->post_mime_type</p>
    1445                         <p><strong>" . __('Upload date:') . "</strong> " . mysql2date( get_option('date_format'), $post->post_date ). '</p>';
     1445                        <p><strong>" . __('Upload date:') . "</strong> " . mysql2date( __( 'F j, Y' ), $post->post_date ). '</p>';
    14461446                        if ( !empty( $media_dims ) )
    14471447                                $item .= "<p><strong>" . __('Dimensions:') . "</strong> $media_dims</p>\n";
    14481448
  • src/wp-admin/options-general.php

     
    235235                                __('Daylight saving time begins on: <code>%s</code>.') :
    236236                                __('Standard time begins on: <code>%s</code>.');
    237237                        // Add the difference between the current offset and the new offset to ts to get the correct transition time from date_i18n().
    238                         printf( $message, date_i18n(get_option('date_format') . ' ' . get_option('time_format'), $tr['ts'] + ($tz_offset - $tr['offset']) ) );
     238                        printf( $message, date_i18n( __( 'F j, Y' ) . ' ' . __( 'g:i a' ) ), $tr['ts'] + ($tz_offset - $tr['offset']) );
    239239                } else {
    240240                        _e('This timezone does not observe daylight saving time.');
    241241                }
  • src/wp-admin/update-core.php

     
    555555
    556556        echo '<p>';
    557557        /* translators: %1 date, %2 time. */
    558         printf( __('Last checked on %1$s at %2$s.'), date_i18n( get_option( 'date_format' ) ), date_i18n( get_option( 'time_format' ) ) );
     558        printf( __( 'Last checked on %1$s at %2$s.' ), date_i18n( __( 'F j, Y' ) ), date_i18n( __( 'g:i a' ) ) );
    559559        echo ' &nbsp; <a class="button" href="' . esc_url( self_admin_url('update-core.php?force-check=1') ) . '">' . __( 'Check Again' ) . '</a>';
    560560        echo '</p>';
    561561
  • src/wp-includes/media.php

     
    27342734                'type'        => $type,
    27352735                'subtype'     => $subtype,
    27362736                'icon'        => wp_mime_type_icon( $attachment->ID ),
    2737                 'dateFormatted' => mysql2date( get_option('date_format'), $attachment->post_date ),
     2737                'dateFormatted' => mysql2date( __( 'F j, Y' ), $attachment->post_date ),
    27382738                'nonces'      => array(
    27392739                        'update' => false,
    27402740                        'delete' => false,