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

    r45926 r45932  
    290290            $user = get_userdata( $id );
    291291            if ( $id == $current_user->ID ) {
    292                 /* translators: 1: user ID, 2: user login */
     292                /* translators: 1: User ID, 2: User login. */
    293293                echo '<li>' . sprintf( __( 'ID #%1$s: %2$s <strong>The current user will not be deleted.</strong>' ), $id, $user->user_login ) . "</li>\n";
    294294            } else {
    295                 /* translators: 1: user ID, 2: user login */
     295                /* translators: 1: User ID, 2: User login. */
    296296                echo '<li><input type="hidden" name="users[]" value="' . esc_attr( $id ) . '" />' . sprintf( __( 'ID #%1$s: %2$s' ), $id, $user->user_login ) . "</li>\n";
    297297                $go_delete++;
     
    428428            $user = get_userdata( $id );
    429429            if ( ! current_user_can( 'remove_user', $id ) ) {
    430                 /* translators: 1: user ID, 2: user login */
     430                /* translators: 1: User ID, 2: User login. */
    431431                echo '<li>' . sprintf( __( 'ID #%1$s: %2$s <strong>Sorry, you are not allowed to remove this user.</strong>' ), $id, $user->user_login ) . "</li>\n";
    432432            } else {
    433                 /* translators: 1: user ID, 2: user login */
     433                /* translators: 1: User ID, 2: User login. */
    434434                echo "<li><input type=\"hidden\" name=\"users[]\" value=\"{$id}\" />" . sprintf( __( 'ID #%1$s: %2$s' ), $id, $user->user_login ) . "</li>\n";
    435435                $go_remove = true;
     
    485485                        $message = __( 'User deleted.' );
    486486                    } else {
    487                         /* translators: %s: number of users */
     487                        /* translators: %s: Number of users. */
    488488                        $message = _n( '%s user deleted.', '%s users deleted.', $delete_count );
    489489                    }
     
    569569
    570570if ( strlen( $usersearch ) ) {
    571     /* translators: %s: search keywords */
     571    /* translators: %s: Search query. */
    572572    printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( $usersearch ) );
    573573}
Note: See TracChangeset for help on using the changeset viewer.