WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (3 months 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/edit-form-advanced.php

    r45926 r45932  
    176176    3  => __( 'Custom field deleted.' ),
    177177    4  => __( 'Post updated.' ),
    178     /* translators: %s: date and time of the revision */
     178    /* translators: %s: Date and time of the revision. */
    179179    5  => isset( $_GET['revision'] ) ? sprintf( __( 'Post restored to revision from %s.' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
    180180    6  => __( 'Post published.' ) . $view_post_link_html,
    181181    7  => __( 'Post saved.' ),
    182182    8  => __( 'Post submitted.' ) . $preview_post_link_html,
    183     /* translators: %s: scheduled date for the post */
     183    /* translators: %s: Scheduled date for the post. */
    184184    9  => sprintf( __( 'Post scheduled for: %s.' ), '<strong>' . $scheduled_date . '</strong>' ) . $scheduled_post_link_html,
    185185    10 => __( 'Post draft updated.' ) . $preview_post_link_html,
     
    191191    3  => __( 'Custom field deleted.' ),
    192192    4  => __( 'Page updated.' ),
    193     /* translators: %s: date and time of the revision */
     193    /* translators: %s: Date and time of the revision. */
    194194    5  => isset( $_GET['revision'] ) ? sprintf( __( 'Page restored to revision from %s.' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
    195195    6  => __( 'Page published.' ) . $view_page_link_html,
    196196    7  => __( 'Page saved.' ),
    197197    8  => __( 'Page submitted.' ) . $preview_page_link_html,
    198     /* translators: %s: scheduled date for the page */
     198    /* translators: %s: Scheduled date for the page. */
    199199    9  => sprintf( __( 'Page scheduled for: %s.' ), '<strong>' . $scheduled_date . '</strong>' ) . $scheduled_page_link_html,
    200200    10 => __( 'Page draft updated.' ) . $preview_page_link_html,
     
    242242        if ( normalize_whitespace( $autosave->$autosave_field ) != normalize_whitespace( $post->$autosave_field ) ) {
    243243            $notice = sprintf(
    244                 /* translators: %s: URL to view the autosave */
     244                /* translators: %s: URL to view the autosave. */
    245245                __( 'There is an autosave of this post that is more recent than the version below. <a href="%s">View the autosave</a>' ),
    246246                get_edit_post_link( $autosave->ID )
     
    300300    get_current_screen()->set_help_sidebar(
    301301        '<p>' . sprintf(
    302             /* translators: %s: URL to Press This bookmarklet */
     302            /* translators: %s: URL to Press This bookmarklet. */
    303303            __( 'You can also create posts with the <a href="%s">Press This bookmarklet</a>.' ),
    304304            'tools.php'
     
    371371    if ( current_theme_supports( 'post-thumbnails' ) && post_type_supports( 'post', 'thumbnail' ) ) {
    372372        $publish_box .= '<li>' . sprintf(
    373             /* translators: %s: Featured Image */
     373            /* translators: %s: Featured Image. */
    374374            __( '<strong>%s</strong> &mdash; This allows you to associate an image with your post without inserting it. This is usually useful only if your theme makes use of the image as a post thumbnail on the home page, a custom header, etc.' ),
    375375            esc_html( $post_type_object->labels->featured_image )
     
    594594    <?php
    595595    printf(
    596         /* translators: %s: Number of words */
     596        /* translators: %s: Number of words. */
    597597        __( 'Word count: %s' ),
    598598        '<span class="word-count">0</span>'
     
    607607        $last_user = get_userdata( get_post_meta( $post_ID, '_edit_last', true ) );
    608608        if ( $last_user ) {
    609             /* translators: 1: Name of most recent post author, 2: Post edited date, 3: Post edited time */
     609            /* translators: 1: Name of most recent post author, 2: Post edited date, 3: Post edited time. */
    610610            printf( __( 'Last edited by %1$s on %2$s at %3$s' ), esc_html( $last_user->display_name ), mysql2date( __( 'F j, Y' ), $post->post_modified ), mysql2date( __( 'g:i a' ), $post->post_modified ) );
    611611        } else {
    612             /* translators: 1: Post edited date, 2: Post edited time */
     612            /* translators: 1: Post edited date, 2: Post edited time. */
    613613            printf( __( 'Last edited on %1$s at %2$s' ), mysql2date( __( 'F j, Y' ), $post->post_modified ), mysql2date( __( 'g:i a' ), $post->post_modified ) );
    614614        }
Note: See TracChangeset for help on using the changeset viewer.