Make WordPress Core


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

    r45926 r45932  
    315315$bulk_messages             = array();
    316316$bulk_messages['post']     = array(
    317     /* translators: %s: number of posts */
     317    /* translators: %s: Number of posts. */
    318318    'updated'   => _n( '%s post updated.', '%s posts updated.', $bulk_counts['updated'] ),
    319319    'locked'    => ( 1 == $bulk_counts['locked'] ) ? __( '1 post not updated, somebody is editing it.' ) :
    320                     /* translators: %s: number of posts */
     320                    /* translators: %s: Number of posts. */
    321321                    _n( '%s post not updated, somebody is editing it.', '%s posts not updated, somebody is editing them.', $bulk_counts['locked'] ),
    322     /* translators: %s: number of posts */
     322    /* translators: %s: Number of posts. */
    323323    'deleted'   => _n( '%s post permanently deleted.', '%s posts permanently deleted.', $bulk_counts['deleted'] ),
    324     /* translators: %s: number of posts */
     324    /* translators: %s: Number of posts. */
    325325    'trashed'   => _n( '%s post moved to the Trash.', '%s posts moved to the Trash.', $bulk_counts['trashed'] ),
    326     /* translators: %s: number of posts */
     326    /* translators: %s: Number of posts. */
    327327    'untrashed' => _n( '%s post restored from the Trash.', '%s posts restored from the Trash.', $bulk_counts['untrashed'] ),
    328328);
    329329$bulk_messages['page']     = array(
    330     /* translators: %s: number of pages */
     330    /* translators: %s: Number of pages. */
    331331    'updated'   => _n( '%s page updated.', '%s pages updated.', $bulk_counts['updated'] ),
    332332    'locked'    => ( 1 == $bulk_counts['locked'] ) ? __( '1 page not updated, somebody is editing it.' ) :
    333                     /* translators: %s: number of pages */
     333                    /* translators: %s: Number of pages. */
    334334                    _n( '%s page not updated, somebody is editing it.', '%s pages not updated, somebody is editing them.', $bulk_counts['locked'] ),
    335     /* translators: %s: number of pages */
     335    /* translators: %s: Number of pages. */
    336336    'deleted'   => _n( '%s page permanently deleted.', '%s pages permanently deleted.', $bulk_counts['deleted'] ),
    337     /* translators: %s: number of pages */
     337    /* translators: %s: Number of pages. */
    338338    'trashed'   => _n( '%s page moved to the Trash.', '%s pages moved to the Trash.', $bulk_counts['trashed'] ),
    339     /* translators: %s: number of pages */
     339    /* translators: %s: Number of pages. */
    340340    'untrashed' => _n( '%s page restored from the Trash.', '%s pages restored from the Trash.', $bulk_counts['untrashed'] ),
    341341);
    342342$bulk_messages['wp_block'] = array(
    343     /* translators: %s: number of blocks */
     343    /* translators: %s: Number of blocks. */
    344344    'updated'   => _n( '%s block updated.', '%s blocks updated.', $bulk_counts['updated'] ),
    345345    'locked'    => ( 1 == $bulk_counts['locked'] ) ? __( '1 block not updated, somebody is editing it.' ) :
    346                     /* translators: %s: number of blocks */
     346                    /* translators: %s: Number of blocks. */
    347347                    _n( '%s block not updated, somebody is editing it.', '%s blocks not updated, somebody is editing them.', $bulk_counts['locked'] ),
    348     /* translators: %s: number of blocks */
     348    /* translators: %s: Number of blocks. */
    349349    'deleted'   => _n( '%s block permanently deleted.', '%s blocks permanently deleted.', $bulk_counts['deleted'] ),
    350     /* translators: %s: number of blocks */
     350    /* translators: %s: Number of blocks. */
    351351    'trashed'   => _n( '%s block moved to the Trash.', '%s blocks moved to the Trash.', $bulk_counts['trashed'] ),
    352     /* translators: %s: number of blocks */
     352    /* translators: %s: Number of blocks. */
    353353    'untrashed' => _n( '%s block restored from the Trash.', '%s blocks restored from the Trash.', $bulk_counts['untrashed'] ),
    354354);
     
    383383
    384384if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
    385     /* translators: %s: search keywords */
     385    /* translators: %s: Search query. */
    386386    printf( ' <span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', get_search_query() );
    387387}
Note: See TracChangeset for help on using the changeset viewer.