Make WordPress Core


Ignore:
Timestamp:
11/21/2016 02:45:53 AM (9 years ago)
Author:
johnbillion
Message:

I18n: Introduce more translator comments for strings that contain placeholders but don't have an accompanying translator comment.

See #38882

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/meta-boxes.php

    r39247 r39326  
    176176if ( 0 != $post->ID ) {
    177177    if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date
     178        /* translators: Post date information. 1: Date on which the post is currently scheduled to be published */
    178179        $stamp = __('Scheduled for: <b>%1$s</b>');
    179180    } elseif ( 'publish' == $post->post_status || 'private' == $post->post_status ) { // already published
     181        /* translators: Post date information. 1: Date on which the post was published */
    180182        $stamp = __('Published on: <b>%1$s</b>');
    181183    } elseif ( '0000-00-00 00:00:00' == $post->post_date_gmt ) { // draft, 1 or more saves, no date specified
    182184        $stamp = __('Publish <b>immediately</b>');
    183185    } elseif ( time() < strtotime( $post->post_date_gmt . ' +0000' ) ) { // draft, 1 or more saves, future date specified
     186        /* translators: Post date information. 1: Date on which the post is to be published */
    184187        $stamp = __('Schedule for: <b>%1$s</b>');
    185188    } else { // draft, 1 or more saves, date specified
     189        /* translators: Post date information. 1: Date on which the post is to be published */
    186190        $stamp = __('Publish on: <b>%1$s</b>');
    187191    }
     
    194198if ( ! empty( $args['args']['revisions_count'] ) ) : ?>
    195199<div class="misc-pub-section misc-pub-revisions">
    196     <?php printf( __( 'Revisions: %s' ), '<b>' . number_format_i18n( $args['args']['revisions_count'] ) . '</b>' ); ?>
     200    <?php
     201        /* translators: Post revisions heading. 1: The number of available revisions */
     202        printf( __( 'Revisions: %s' ), '<b>' . number_format_i18n( $args['args']['revisions_count'] ) . '</b>' );
     203    ?>
    197204    <a class="hide-if-no-js" href="<?php echo esc_url( get_edit_post_link( $args['args']['revision_id'] ) ); ?>"><span aria-hidden="true"><?php _ex( 'Browse', 'revisions' ); ?></span> <span class="screen-reader-text"><?php _e( 'Browse revisions' ); ?></span></a>
    198205</div>
     
    300307    /* translators: Publish box date format, see https://secure.php.net/date */
    301308    $datef = __( 'M j, Y @ H:i' );
     309    /* translators: Attachment information. 1: Date the attachment was uploaded */
    302310    $stamp = __('Uploaded on: <b>%1$s</b>');
    303311    $date = date_i18n( $datef, strtotime( $post->post_date ) );
Note: See TracChangeset for help on using the changeset viewer.