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-includes/user.php

    r45926 r45932  
    175175            'incorrect_password',
    176176            sprintf(
    177                 /* translators: %s: user name */
     177                /* translators: %s: User name. */
    178178                __( '<strong>ERROR</strong>: The password you entered for the username %s is incorrect.' ),
    179179                '<strong>' . $username . '</strong>'
     
    249249            'incorrect_password',
    250250            sprintf(
    251                 /* translators: %s: email address */
     251                /* translators: %s: Email address. */
    252252                __( '<strong>ERROR</strong>: The password you entered for the email address %s is incorrect.' ),
    253253                '<strong>' . $email . '</strong>'
     
    11911191        foreach ( (array) $users as $user ) {
    11921192            if ( 'display_name_with_login' === $show ) {
    1193                 /* translators: 1: display name, 2: user_login */
     1193                /* translators: 1: User's display name, 2: User login. */
    11941194                $display = sprintf( _x( '%1$s (%2$s)', 'user dropdown' ), $user->display_name, $user->user_login );
    11951195            } elseif ( ! empty( $user->$show ) ) {
     
    17121712            $display_name = $user_login;
    17131713        } elseif ( $meta['first_name'] && $meta['last_name'] ) {
    1714             /* translators: 1: first name, 2: last name */
     1714            /* translators: 1: User's first name, 2: Last name. */
    17151715            $display_name = sprintf( _x( '%1$s %2$s', 'Display name based on first name and last name' ), $meta['first_name'], $meta['last_name'] );
    17161716        } elseif ( $meta['first_name'] ) {
     
    20192019            $pass_change_email = array(
    20202020                'to'      => $user['user_email'],
    2021                 /* translators: Password change notification email subject. %s: Site name */
     2021                /* translators: Password change notification email subject. %s: Site title. */
    20222022                'subject' => __( '[%s] Password Changed' ),
    20232023                'message' => $pass_change_text,
     
    20762076            $email_change_email = array(
    20772077                'to'      => $user['user_email'],
    2078                 /* translators: Email change notification email subject. %s: Site name */
     2078                /* translators: Email change notification email subject. %s: Site title. */
    20792079                'subject' => __( '[%s] Email Changed' ),
    20802080                'message' => $email_change_text,
     
    25612561            'registerfail',
    25622562            sprintf(
    2563                 /* translators: %s: admin email address */
     2563                /* translators: %s: Admin email address. */
    25642564                __( '<strong>ERROR</strong>: Couldn&#8217;t register you&hellip; please contact the <a href="mailto:%s">webmaster</a> !' ),
    25652565                get_option( 'admin_email' )
     
    28762876        $content = str_replace( '###SITEURL###', home_url(), $content );
    28772877
    2878         /* translators: New email address notification email subject. %s: Site name */
     2878        /* translators: New email address notification email subject. %s: Site title. */
    28792879        wp_mail( $_POST['email'], sprintf( __( '[%s] Email Change Request' ), $sitename ), $content );
    28802880
     
    28982898        $email = get_user_meta( get_current_user_id(), '_new_email', true );
    28992899        if ( $email ) {
    2900             /* translators: %s: New email address */
     2900            /* translators: %s: New email address. */
    29012901            echo '<div class="notice notice-info"><p>' . sprintf( __( 'Your email address has not been updated yet. Please check your inbox at %s for a confirmation email.' ), '<code>' . esc_html( $email['newemail'] ) . '</code>' ) . '</p></div>';
    29022902        }
     
    32373237
    32383238    $subject = sprintf(
    3239         /* translators: Erasure request fulfilled notification email subject. %s: Site name. */
     3239        /* translators: Erasure request fulfilled notification email subject. %s: Site title. */
    32403240        __( '[%s] Erasure Request Fulfilled' ),
    32413241        $email_data['sitename']
     
    34553455            break;
    34563456        default:
    3457             /* translators: %s: action name */
     3457            /* translators: %s: Action name. */
    34583458            $description = sprintf( __( 'Confirm the "%s" action' ), $action_name );
    34593459            break;
     
    35653565    $content = str_replace( '###SITEURL###', esc_url_raw( $email_data['siteurl'] ), $content );
    35663566
    3567     /* translators: Confirm privacy data request notification email subject. 1: Site title, 2: Name of the action */
     3567    /* translators: Confirm privacy data request notification email subject. 1: Site title, 2: Name of the action. */
    35683568    $subject = sprintf( __( '[%1$s] Confirm Action: %2$s' ), $email_data['sitename'], $email_data['description'] );
    35693569
Note: See TracChangeset for help on using the changeset viewer.