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/misc.php

    r45926 r45932  
    126126
    127127    $instructions = sprintf(
    128         /* translators: 1: marker */
     128        /* translators: 1: Marker. */
    129129        __(
    130130            'The directives (lines) between `BEGIN %1$s` and `END %1$s` are
     
    10151015                if ( $user && current_user_can( 'edit_post', $post_id ) ) {
    10161016                    $send = array(
    1017                         /* translators: %s: user's display name */
     1017                        /* translators: %s: User's display name. */
    10181018                        'text' => sprintf( __( '%s is currently editing' ), $user->display_name ),
    10191019                    );
     
    10651065        if ( $user ) {
    10661066            $error = array(
    1067                 /* translators: %s: user's display name */
     1067                /* translators: %s: User's display name. */
    10681068                'text' => sprintf( __( '%s has taken over and is currently editing.' ), $user->display_name ),
    10691069            );
     
    11891189            );
    11901190        } else {
    1191             /* translators: draft saved date format, see https://secure.php.net/date */
     1191            /* translators: Draft saved date format, see https://secure.php.net/date */
    11921192            $draft_saved_date_format = __( 'g:i:s a' );
    11931193            $response['wp_autosave'] = array(
    11941194                'success' => true,
    1195                 /* translators: %s: date and time */
     1195                /* translators: %s: Date and time. */
    11961196                'message' => sprintf( __( 'Draft saved at %s.' ), date_i18n( $draft_saved_date_format ) ),
    11971197            );
     
    13491349        $value,
    13501350        sprintf(
    1351             /* translators: New admin email address notification email subject. %s: Site title */
     1351            /* translators: New admin email address notification email subject. %s: Site title. */
    13521352            __( '[%s] New Admin Email Address' ),
    13531353            wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES )
     
    13751375function _wp_privacy_settings_filter_draft_page_titles( $title, $page ) {
    13761376    if ( 'draft' === $page->post_status && 'privacy' === get_current_screen()->id ) {
    1377         /* translators: %s: Page Title */
     1377        /* translators: %s: Page title. */
    13781378        $title = sprintf( __( '%s (Draft)' ), $title );
    13791379    }
Note: See TracChangeset for help on using the changeset viewer.