WordPress.org

Make WordPress Core

Ticket #27228: 27228.diff

File 27228.diff, 2.4 KB (added by GaryJ, 5 years ago)

Make translator comments use a consistent format

  • wp-admin/includes/meta-boxes.php

     
    158158</div><!-- .misc-pub-section -->
    159159
    160160<?php
    161 // translators: Publish box date format, see http://php.net/date
     161/* translators: Publish box date format, see http://php.net/date */
    162162$datef = __( 'M j, Y @ G:i' );
    163163if ( 0 != $post->ID ) {
    164164        if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date
     
    294294
    295295<div id="misc-publishing-actions">
    296296        <?php
    297         // translators: Publish box date format, see http://php.net/date
     297        /* translators: Publish box date format, see http://php.net/date */
    298298        $datef = __( 'M j, Y @ G:i' );
    299299        $stamp = __('Uploaded on: <b>%1$s</b>');
    300300        $date = date_i18n( $datef, strtotime( $post->post_date ) );
  • wp-admin/edit-form-comment.php

     
    9999
    100100<div class="misc-pub-section curtime misc-pub-curtime">
    101101<?php
    102 // translators: Publish box date format, see http://php.net/date
     102/* translators: Publish box date format, see http://php.net/date */
    103103$datef = __( 'M j, Y @ G:i' );
    104104$stamp = __('Submitted on: <b>%1$s</b>');
    105105$date = date_i18n( $datef, strtotime( $comment->comment_date ) );
  • wp-admin/edit-form-advanced.php

     
    5454         7 => __('Post saved.'),
    5555         8 => sprintf( __('Post submitted. <a target="_blank" href="%s">Preview post</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
    5656         9 => sprintf( __('Post scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview post</a>'),
    57                 // translators: Publish box date format, see http://php.net/date
     57                /* translators: Publish box date format, see http://php.net/date */
    5858                date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
    5959        10 => sprintf( __('Post draft updated. <a target="_blank" href="%s">Preview post</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
    6060);