Make WordPress Core


Ignore:
Timestamp:
03/11/2018 04:43:59 PM (7 years ago)
Author:
SergeyBiryukov
Message:

I18N: Use the actual placeholder instead of a number in translator comments if the corresponding string does not use numbered placeholders.

Add missing translator comments in WP_Theme_Install_List_Table and wp_notify_postauthor().
Add missing commas in some translator comments.

Fixes #43523.

File:
1 edited

Legend:

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

    r42674 r42827  
    199199if ( 0 != $post->ID ) {
    200200    if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date
    201         /* translators: Post date information. 1: Date on which the post is currently scheduled to be published */
    202         $stamp = __( 'Scheduled for: <b>%1$s</b>' );
     201        /* translators: Post date information. %s: Date on which the post is currently scheduled to be published */
     202        $stamp = __( 'Scheduled for: <b>%s</b>' );
    203203    } elseif ( 'publish' == $post->post_status || 'private' == $post->post_status ) { // already published
    204         /* translators: Post date information. 1: Date on which the post was published */
    205         $stamp = __( 'Published on: <b>%1$s</b>' );
     204        /* translators: Post date information. %s: Date on which the post was published */
     205        $stamp = __( 'Published on: <b>%s</b>' );
    206206    } elseif ( '0000-00-00 00:00:00' == $post->post_date_gmt ) { // draft, 1 or more saves, no date specified
    207207        $stamp = __( 'Publish <b>immediately</b>' );
    208208    } elseif ( time() < strtotime( $post->post_date_gmt . ' +0000' ) ) { // draft, 1 or more saves, future date specified
    209         /* translators: Post date information. 1: Date on which the post is to be published */
    210         $stamp = __( 'Schedule for: <b>%1$s</b>' );
     209        /* translators: Post date information. %s: Date on which the post is to be published */
     210        $stamp = __( 'Schedule for: <b>%s</b>' );
    211211    } else { // draft, 1 or more saves, date specified
    212         /* translators: Post date information. 1: Date on which the post is to be published */
    213         $stamp = __( 'Publish on: <b>%1$s</b>' );
     212        /* translators: Post date information. %s: Date on which the post is to be published */
     213        $stamp = __( 'Publish on: <b>%s</b>' );
    214214    }
    215215    $date = date_i18n( $datef, strtotime( $post->post_date ) );
     
    223223<div class="misc-pub-section misc-pub-revisions">
    224224    <?php
    225         /* translators: Post revisions heading. 1: The number of available revisions */
     225        /* translators: Post revisions heading. %s: The number of available revisions */
    226226        printf( __( 'Revisions: %s' ), '<b>' . number_format_i18n( $args['args']['revisions_count'] ) . '</b>' );
    227227    ?>
Note: See TracChangeset for help on using the changeset viewer.