diff --git a/wp-admin/profile.php b/wp-admin/profile.php index b83450c328..198429a024 100644 --- a/wp-admin/profile.php +++ b/wp-admin/profile.php @@ -1,4 +1,7 @@ - */ function add_magic_quotes($array) { @@ -44,36 +47,36 @@ case 'update': /* checking the nickname has been typed */ if (empty($_POST["newuser_nickname"])) { - die ("ERROR: please enter your nickname (can be the same as your login)"); + die (__("ERROR: please enter your nickname (can be the same as your login)")); return false; } /* if the ICQ UIN has been entered, check to see if it has only numbers */ if (!empty($_POST["newuser_icq"])) { if ((ereg("^[0-9]+$",$_POST["newuser_icq"]))==false) { - die ("ERROR: your ICQ UIN can only be a number, no letters allowed"); + die (__("ERROR: your ICQ UIN can only be a number, no letters allowed")); return false; } } /* checking e-mail address */ if (empty($_POST["newuser_email"])) { - die ("ERROR: please type your e-mail address"); + die (__("ERROR: please type your e-mail address")); return false; } else if (!is_email($_POST["newuser_email"])) { - die ("ERROR: the email address isn't correct"); + die (__("ERROR: the email address isn't correct")); return false; } if ($_POST["pass1"] == "") { if ($_POST["pass2"] != "") - die ("ERROR: you typed your new password only once. Go back to type it twice."); + die (__("ERROR: you typed your new password only once. Go back to type it twice.")); $updatepassword = ""; } else { if ($_POST["pass2"] == "") - die ("ERROR: you typed your new password only once. Go back to type it twice."); + die (__("ERROR: you typed your new password only once. Go back to type it twice.")); if ($_POST["pass1"] != $_POST["pass2"]) - die ("ERROR: you typed two different passwords. Go back to correct that."); + die (__("ERROR: you typed two different passwords. Go back to correct that.")); $newuser_pass = $_POST["pass1"]; $updatepassword = "user_pass=MD5('$newuser_pass'), "; setcookie("wordpresspass_".$cookiehash,md5($newuser_pass),time()+31536000); @@ -94,7 +97,7 @@ case 'update': $query = "UPDATE $tableusers SET user_firstname='$newuser_firstname', $updatepassword user_lastname='$newuser_lastname', user_nickname='$newuser_nickname', user_icq='$newuser_icq', user_email='$newuser_email', user_url='$newuser_url', user_aim='$newuser_aim', user_msn='$newuser_msn', user_yim='$newuser_yim', user_idmode='$newuser_idmode', user_description = '$user_description' WHERE ID = $user_ID"; $result = $wpdb->query($query); if (!$result) { - die ("ERROR: couldn't update your profile..."); + die (__("ERROR: couldn't update your profile...")); } header('Location: profile.php?updated=true'); break; @@ -109,7 +112,7 @@ case 'viewprofile': include_once('admin-header.php'); ?> -

View Profile “ +

user_idmode) { case 'nickname': @@ -137,36 +140,36 @@ case 'viewprofile':

- Login user_login ?> - | User # ID ?> | Level - user_level ?> | Posts + user_login ?> + | ID ?> | + user_level ?> |

-

First name: user_firstname ?>

+

user_firstname ?>

-

Last name: user_lastname ?>

+

user_lastname ?>

-

Nickname: user_nickname ?>

+

user_nickname ?>

-

Email: user_email) ?> +

user_email) ?>

-

Website: user_url ?>

+

user_url ?>

-

ICQ: +

user_icq > 0) { echo make_clickable("icq:".$profiledata->user_icq); } ?>

-

AIM: user_aim) ."&message=Howdy'>$profiledata->user_aim"; ?> +

user_aim) ."&message=Howdy'>$profiledata->user_aim"; ?>

-

MSN IM: user_msn ?>

+

user_msn ?>

-

Yahoo IM: user_yim ?>

+

user_yim ?>

@@ -223,7 +226,7 @@ default: ?>
-

Profile updated.

+

@@ -232,8 +235,8 @@ default:

-

Login: user_login ?> | Level: - user_level ?> | Posts: +

user_login ?> | + user_level ?> | - + - + - + - + - + - + - + - + - + - + - + - +
First name:
Last name:
Profile:
Nickname:
Email:
Website:
ICQ:
AIM:
MSN IM:
Yahoo IM:
Identity on blog:
New Password (Leave blank to stay the same.)Password (Leave blank to stay the same.)') ?>

- +

@@ -327,7 +330,7 @@ function addPanel() if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) window.sidebar.addPanel("WordPress Post: ","/wp-admin/sidebar.php",""); else - alert('No Sidebar found! You must use Mozilla 0.9.4 or later!'); + alert(); } SideBar
@@ -348,4 +351,4 @@ break; /* */ include('admin-footer.php'); - ?> \ No newline at end of file + ?>