diff --git a/wp-admin/users.php b/wp-admin/users.php index 93822dc632..b085063842 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -1,5 +1,7 @@ */ $wpvarstoreset = array('action','standalone','redirect','profile'); @@ -35,31 +37,31 @@ case 'adduser': /* checking login has been typed */ if ($user_login == '') { - die ('ERROR: Please enter a login.'); + die (__('ERROR: Please enter a login.')); } /* checking the password has been typed twice */ if ($pass1 == '' || $pass2 == '') { - die ('ERROR: Please enter your password twice.'); + die (__('ERROR: Please enter your password twice.')); } /* checking the password has been typed twice the same */ if ($pass1 != $pass2) { - die ('ERROR: Please type the same password in the two password fields.'); + die (__('ERROR: Please type the same password in the two password fields.')); } $user_nickname = $user_login; /* checking e-mail address */ if ($user_email == '') { - die ('ERROR: Please type your e-mail address.'); + die (__('ERROR: Please type your e-mail address.')); } else if (!is_email($user_email)) { - die ('ERROR: The email address isn’t correct.'); + die (__('ERROR: The email address isn’t correct.')); } /* checking the login isn't already used by another user */ $loginthere = $wpdb->get_var("SELECT user_login FROM $tableusers WHERE user_login = '$user_login'"); if ($loginthere) { - die ('ERROR: This login is already registered, please choose another one.'); + die (__('ERROR: This login is already registered, please choose another one.')); } @@ -78,7 +80,7 @@ case 'adduser': ('$user_login', MD5('$pass1'), '$user_nickname', '$user_email', '$user_ip', '$user_domain', '$user_browser', '$now', '$new_users_can_blog', 'nickname', '$user_firstname', '$user_lastname', '$user_nicename')"); if ($result == false) { - die ('ERROR: Couldn’t register you!'); + die (__('ERROR: Couldn’t register you!')); } $stars = ''; @@ -109,7 +111,7 @@ case 'promote': $usertopromote_level = $user_data->user_level; if ($user_level <= $usertopromote_level) { - die('Can’t change the level of a user whose level is higher than yours.'); + die(__('Can’t change the level of a user whose level is higher than yours.')); } if ('up' == $prom) { @@ -140,7 +142,7 @@ case 'delete': $usertodelete_level = $user_data->user_level; if ($user_level <= $usertodelete_level) - die('Can’t delete a user whose level is higher than yours.'); + die(__('Can’t delete a user whose level is higher than yours.')); $post_ids = $wpdb->get_col("SELECT ID FROM $tableposts WHERE post_author = $id"); $post_ids = implode(',', $post_ids); @@ -168,19 +170,19 @@ default: include ('admin-header.php'); ?> -

User deleted.

+

-

Authors

+

- - - - - - - + + + + + + + get_results("SELECT ID FROM $tableusers WHERE user_level > 0 ORDER BY ID"); @@ -196,13 +198,13 @@ default: $short_url = substr($short_url, 0, 32).'...'; $style = ('class="alternate"' == $style) ? '' : 'class="alternate"'; $numposts = $wpdb->get_var("SELECT COUNT(*) FROM $tableposts WHERE post_author = $user->ID and post_status = 'publish'"); - if (0 < $numposts) $numposts = "$numposts"; + if (0 < $numposts) $numposts = "$numposts"; echo " - +
IDNicknameNameE-mailURILevelPosts
$user_data->ID $user_data->user_nickname $user_data->user_firstname $user_data->user_lastname$email$email $short_url "; if (($user_level >= 2) and ($user_level > $user_data->user_level) and ($user_data->user_level > 0)) @@ -224,15 +226,15 @@ default: if ($users) { ?>
-

Users

+

- - - - - - + + + + + + - + ?>
IDNicknameNameE-mailURILevel
$user_data->ID $user_data->user_nickname $user_data->user_firstname $user_data->user_lastname$email$email $short_url "; if ($user_level >= 3) @@ -263,48 +265,47 @@ echo "\n
-

To delete a user, bring his level to zero, then click on the red X.
- Warning: deleting a user also deletes all posts made by this user. -

+ To delete a user, bring his level to zero, then click on the red X.
+ Warning: deleting a user also deletes all posts made by this user.

') ?>
-

Add User

-

Users can register themselves or you can manually create users here.

+

+Users can register themselves or you can manually create users here.

'), get_settings('siteurl')); ?>
- - + - + - + - + - +
Nickname +
First Name
Last Name
Email
URI
Password (twice)

- +

@@ -315,4 +316,4 @@ break; /* */ include('admin-footer.php'); -?> \ No newline at end of file +?>