WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (7 weeks ago)
Author:
SergeyBiryukov
Message:

I18N: Capitalize translator comments consistently, add trailing punctuation.

Includes minor code layout fixes.

See #44360.

File:
1 edited

Legend:

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

    r45926 r45932  
    6565            '%1$s<span class="screen-reader-text"> %2$s</span>',
    6666            $preview_button_text,
    67             /* translators: accessibility text */
     67            /* translators: Accessibility text. */
    6868            __( '(opens in a new tab)' )
    6969        );
     
    199199    if ( 0 != $post->ID ) {
    200200        if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date
    201             /* translators: Post date information. %s: Date on which the post is currently scheduled to be published */
     201            /* translators: Post date information. %s: Date on which the post is currently scheduled to be published. */
    202202            $stamp = __( 'Scheduled for: <b>%s</b>' );
    203203        } elseif ( 'publish' == $post->post_status || 'private' == $post->post_status ) { // already published
    204             /* translators: Post date information. %s: Date on which the post was published */
     204            /* translators: Post date information. %s: Date on which the post was published. */
    205205            $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. %s: Date on which the post is to be published */
     209            /* translators: Post date information. %s: Date on which the post is to be published. */
    210210            $stamp = __( 'Schedule for: <b>%s</b>' );
    211211        } else { // draft, 1 or more saves, date specified
    212             /* translators: Post date information. %s: Date on which the post is to be published */
     212            /* translators: Post date information. %s: Date on which the post is to be published. */
    213213            $stamp = __( 'Publish on: <b>%s</b>' );
    214214        }
     
    223223<div class="misc-pub-section misc-pub-revisions">
    224224        <?php
    225         /* translators: Post revisions heading. %s: 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        ?>
     
    249249            <?php
    250250            echo sprintf(
    251                 /* translators: %s: URL to the Customizer */
     251                /* translators: %s: URL to the Customizer. */
    252252                __( 'This draft comes from your <a href="%s">unpublished customization changes</a>. You can edit, but there&#8217;s no need to publish now. It will be published automatically with those changes.' ),
    253253                esc_url(
     
    370370                strtotime( $post->post_date )
    371371            );
    372                             printf(
    373                                 /* translators: Attachment information. %s: Date the attachment was uploaded */
    374                                 __( 'Uploaded on: %s' ),
    375                                 '<b>' . $date . '</b>'
    376                             );
     372            printf(
     373                /* translators: Attachment information. %s: Date the attachment was uploaded. */
     374                __( 'Uploaded on: %s' ),
     375                '<b>' . $date . '</b>'
     376            );
    377377        ?>
    378378        </span>
     
    593593                <a id="<?php echo $tax_name; ?>-add-toggle" href="#<?php echo $tax_name; ?>-add" class="hide-if-no-js taxonomy-add-new">
    594594                    <?php
    595                         /* translators: %s: add new taxonomy label */
     595                        /* translators: %s: Add New taxonomy label. */
    596596                        printf( __( '+ %s' ), $taxonomy->labels->add_new_item );
    597597                    ?>
     
    664664    <?php
    665665    printf(
    666         /* translators: %s: Documentation URL */
     666        /* translators: %s: Documentation URL. */
    667667        __( 'Excerpts are optional hand-crafted summaries of your content that can be used in your theme. <a href="%s">Learn more about manual excerpts</a>.' ),
    668668        __( 'https://wordpress.org/support/article/excerpt/' )
     
    701701    <?php
    702702    printf(
    703         /* translators: %s: Documentation URL */
     703        /* translators: %s: Documentation URL. */
    704704        __( 'Trackbacks are a way to notify legacy blog systems that you&#8217;ve linked to them. If you link other WordPress sites, they&#8217;ll be notified automatically using <a href="%s">pingbacks</a>, no other action necessary.' ),
    705705        __( 'https://wordpress.org/support/article/introduction-to-blogging/#comments' )
     
    738738    <?php
    739739    printf(
    740         /* translators: %s: Documentation URL */
     740        /* translators: %s: Documentation URL. */
    741741        __( 'Custom fields can be used to add extra metadata to a post that you can <a href="%s">use in your theme</a>.' ),
    742742        __( 'https://wordpress.org/support/article/custom-fields/' )
     
    762762        <?php
    763763        printf(
    764             /* translators: %s: Documentation URL */
     764            /* translators: %s: Documentation URL. */
    765765            __( 'Allow <a href="%s">trackbacks and pingbacks</a> on this page' ),
    766766            __( 'https://wordpress.org/support/article/introduction-to-blogging/#managing-comments' )
     
    10301030            '<a class="submitdelete deletion" href="%s" onclick="return confirm( \'%s\' );">%s</a>',
    10311031            wp_nonce_url( "link.php?action=delete&amp;link_id=$link->link_id", 'delete-bookmark_' . $link->link_id ),
    1032             /* translators: %s: link name */
     1032            /* translators: %s: Link name. */
    10331033            esc_js( sprintf( __( "You are about to delete this link '%s'\n  'Cancel' to stop, 'OK' to delete." ), $link->link_name ) ),
    10341034            __( 'Delete' )
Note: See TracChangeset for help on using the changeset viewer.