WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (6 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/edit-comments.php

    r45926 r45932  
    154154    if ( $comments_count->moderated > 0 ) {
    155155        $title = sprintf(
    156             /* translators: 1: comments count, 2: post title */
     156            /* translators: 1: Comments count, 2: Post title. */
    157157            __( 'Comments (%1$s) on “%2$s”' ),
    158158            number_format_i18n( $comments_count->moderated ),
     
    161161    } else {
    162162        $title = sprintf(
    163             /* translators: %s: post title */
     163            /* translators: %s: Post title. */
    164164            __( 'Comments on “%s”' ),
    165165            $draft_or_post_title
     
    170170    if ( $comments_count->moderated > 0 ) {
    171171        $title = sprintf(
    172             /* translators: %s: comments count */
     172            /* translators: %s: Comments count. */
    173173            __( 'Comments (%s)' ),
    174174            number_format_i18n( $comments_count->moderated )
     
    227227if ( $post_id ) {
    228228    printf(
    229         /* translators: %s: link to post */
     229        /* translators: %s: Link to post. */
    230230        __( 'Comments on “%s”' ),
    231231        sprintf(
     
    245245    echo '<span class="subtitle">';
    246246    printf(
    247         /* translators: %s: search keywords */
     247        /* translators: %s: Search query. */
    248248        __( 'Search results for &#8220;%s&#8221;' ),
    249249        wp_html_excerpt( esc_html( wp_unslash( $_REQUEST['s'] ) ), 50, '&hellip;' )
     
    283283    if ( $approved > 0 || $deleted > 0 || $trashed > 0 || $untrashed > 0 || $spammed > 0 || $unspammed > 0 || $same > 0 ) {
    284284        if ( $approved > 0 ) {
    285             /* translators: %s: number of comments */
     285            /* translators: %s: Number of comments. */
    286286            $messages[] = sprintf( _n( '%s comment approved', '%s comments approved', $approved ), $approved );
    287287        }
     
    289289        if ( $spammed > 0 ) {
    290290            $ids = isset( $_REQUEST['ids'] ) ? $_REQUEST['ids'] : 0;
    291             /* translators: %s: number of comments */
     291            /* translators: %s: Number of comments. */
    292292            $messages[] = sprintf( _n( '%s comment marked as spam.', '%s comments marked as spam.', $spammed ), $spammed ) . ' <a href="' . esc_url( wp_nonce_url( "edit-comments.php?doaction=undo&action=unspam&ids=$ids", 'bulk-comments' ) ) . '">' . __( 'Undo' ) . '</a><br />';
    293293        }
    294294
    295295        if ( $unspammed > 0 ) {
    296             /* translators: %s: number of comments */
     296            /* translators: %s: Number of comments. */
    297297            $messages[] = sprintf( _n( '%s comment restored from the spam', '%s comments restored from the spam', $unspammed ), $unspammed );
    298298        }
     
    300300        if ( $trashed > 0 ) {
    301301            $ids = isset( $_REQUEST['ids'] ) ? $_REQUEST['ids'] : 0;
    302             /* translators: %s: number of comments */
     302            /* translators: %s: Number of comments. */
    303303            $messages[] = sprintf( _n( '%s comment moved to the Trash.', '%s comments moved to the Trash.', $trashed ), $trashed ) . ' <a href="' . esc_url( wp_nonce_url( "edit-comments.php?doaction=undo&action=untrash&ids=$ids", 'bulk-comments' ) ) . '">' . __( 'Undo' ) . '</a><br />';
    304304        }
    305305
    306306        if ( $untrashed > 0 ) {
    307             /* translators: %s: number of comments */
     307            /* translators: %s: Number of comments. */
    308308            $messages[] = sprintf( _n( '%s comment restored from the Trash', '%s comments restored from the Trash', $untrashed ), $untrashed );
    309309        }
    310310
    311311        if ( $deleted > 0 ) {
    312             /* translators: %s: number of comments */
     312            /* translators: %s: Number of comments. */
    313313            $messages[] = sprintf( _n( '%s comment permanently deleted', '%s comments permanently deleted', $deleted ), $deleted );
    314314        }
Note: See TracChangeset for help on using the changeset viewer.