Make WordPress Core

Changeset 24046


Ignore:
Timestamp:
04/22/2013 07:04:02 PM (12 years ago)
Author:
nacin
Message:

Ensure that the resulting post time is localized after the date is changed. props SergeyBiryukov. fixes #24072.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r24028 r24046  
    620620
    621621    echo '<div class="timestamp-wrap">';
    622     /* translators: 1: month input, 2: day input, 3: year input, 4: hour input, 5: minute input */
    623     printf(__('%1$s%2$s, %3$s @ %4$s : %5$s'), $month, $day, $year, $hour, $minute);
     622    /* translators: 1: month, 2: day, 3: year, 4: hour, 5: minute */
     623    printf( __( '%1$s %2$s, %3$s @ %4$s : %5$s' ), $month, $day, $year, $hour, $minute );
    624624
    625625    echo '</div><input type="hidden" id="ss" name="ss" value="' . $ss . '" />';
  • trunk/wp-admin/js/post.js

    r24042 r24046  
    484484                $('#timestamp').html(
    485485                    publishOn + ' <b>' +
    486                     $('option[value="' + $('#mm').val() + '"]', '#mm').text() + ' ' +
    487                     jj + ', ' +
    488                     aa + ' @ ' +
    489                     hh + ':' +
    490                     mn + '</b> '
     486                    postL10n.dateFormat.replace( '%1$s', $('option[value="' + $('#mm').val() + '"]', '#mm').text() )
     487                        .replace( '%2$s', jj )
     488                        .replace( '%3$s', aa )
     489                        .replace( '%4$s', hh )
     490                        .replace( '%5$s', mn )
     491                    + '</b> '
    491492                );
    492493            }
  • trunk/wp-includes/script-loader.php

    r23977 r24046  
    393393            'publishOnFuture' =>  __('Schedule for:'),
    394394            'publishOnPast' => __('Published on:'),
     395            /* translators: 1: month, 2: day, 3: year, 4: hour, 5: minute */
     396            'dateFormat' => __('%1$s %2$s, %3$s @ %4$s : %5$s'),
    395397            'showcomm' => __('Show more comments'),
    396398            'endcomm' => __('No more comments found.'),
Note: See TracChangeset for help on using the changeset viewer.