WordPress.org

Make WordPress Core

Changeset 36621


Ignore:
Timestamp:
02/23/2016 12:04:36 AM (2 years ago)
Author:
ocean90
Message:

Add translators comments to wp-admin/users.php.

Props ramiy.
Fixes #35885.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/users.php

    r36302 r36621  
    249249        $user = get_userdata( $id );
    250250        if ( $id == $current_user->ID ) {
     251            /* translators: 1: user id, 2: user login */
    251252            echo "<li>" . sprintf(__('ID #%1$s: %2$s <strong>The current user will not be deleted.</strong>'), $id, $user->user_login) . "</li>\n";
    252253        } else {
     254            /* translators: 1: user id, 2: user login */
    253255            echo "<li><input type=\"hidden\" name=\"users[]\" value=\"" . esc_attr($id) . "\" />" . sprintf(__('ID #%1$s: %2$s'), $id, $user->user_login) . "</li>\n";
    254256            $go_delete++;
     
    375377        $user = get_userdata( $id );
    376378        if ( $id == $current_user->ID && !is_super_admin() ) {
     379            /* translators: 1: user id, 2: user login */
    377380            echo "<li>" . sprintf(__('ID #%1$s: %2$s <strong>The current user will not be removed.</strong>'), $id, $user->user_login) . "</li>\n";
    378381        } elseif ( !current_user_can('remove_user', $id) ) {
    379             echo "<li>" . sprintf(__('ID #%1$s: %2$s <strong>You don\'t have permission to remove this user.</strong>'), $id, $user->user_login) . "</li>\n";
     382            /* translators: 1: user id, 2: user login */
     383            echo "<li>" . sprintf(__('ID #%1$s: %2$s <strong>You don&#8217;t have permission to remove this user.</strong>'), $id, $user->user_login) . "</li>\n";
    380384        } else {
     385            /* translators: 1: user id, 2: user login */
    381386            echo "<li><input type=\"hidden\" name=\"users[]\" value=\"{$id}\" />" . sprintf(__('ID #%1$s: %2$s'), $id, $user->user_login) . "</li>\n";
    382387            $go_remove = true;
     
    428433        case 'add':
    429434            if ( isset( $_GET['id'] ) && ( $user_id = $_GET['id'] ) && current_user_can( 'edit_user', $user_id ) ) {
     435                /* translators: %s: edit page url */
    430436                $messages[] = '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( __( 'New user created. <a href="%s">Edit user</a>' ),
    431437                    esc_url( add_query_arg( 'wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ),
Note: See TracChangeset for help on using the changeset viewer.