diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-03-01 21:34:09 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-03-01 21:34:09 +0000 |
commit | 728249cbc4a7a907bada7a8569d8a3d2052ab308 (patch) | |
tree | 4bde92dfb269451bc6e1bd266dac49d224e76dde /account.php | |
parent | a925539e8f668653aa0bc2eb199dae614294ec9e (diff) | |
download | brdo-728249cbc4a7a907bada7a8569d8a3d2052ab308.tar.gz brdo-728249cbc4a7a907bada7a8569d8a3d2052ab308.tar.bz2 |
- fixed small translation glitch in format_interval
- added a couple of missing t() functions
- improved the comments module, fixed the score problem Jeroen
reported earlier -> it's slicker but I hope it won't break anything
Diffstat (limited to 'account.php')
-rw-r--r-- | account.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/account.php b/account.php index e88699e47..42e452dc5 100644 --- a/account.php +++ b/account.php @@ -48,12 +48,12 @@ function account_session_start($userid, $passwd) { global $user; if ($userid && $passwd) $user = new User($userid, $passwd); if ($user->id) session_register("user"); - watchdog("message", ($user->id ? "session opened for user `$user->userid'" : "failed login for user `$userid'")); + watchdog("message", ($user->id ? "session opened for user '$user->userid'" : "failed login for user `$userid'")); } function account_session_close() { global $user; - watchdog("message", "session closed for user `$user->userid'"); + watchdog("message", "session closed for user '$user->userid'"); session_unset(); session_destroy(); unset($user); @@ -67,7 +67,7 @@ function account_user_edit() { $output .= "<FORM ACTION=\"account.php\" METHOD=\"post\">\n"; $output .= "<B>". t("Username") .":</B><BR>\n"; - $output .= " $user->userid<P>\n"; + $output .= "$user->userid<P>\n"; $output .= "<I>". t("Required, unique, and can not be changed.") ."</I><P>\n"; $output .= "<B>". t("Real name") .":</B><BR>\n"; @@ -75,7 +75,7 @@ function account_user_edit() { $output .= "<I>". t("Optional") .".</I><P>\n"; $output .= "<B>". t("Real e-mail address") .":</B><BR>\n"; - $output .= " $user->real_email<P>\n"; + $output .= "$user->real_email<P>\n"; $output .= "<I>". t("Required, unique, can not be changed.") ." ". t("Your real e-mail address is never displayed publicly: only needed in case you lose your password.") ."</I><P>\n"; $output .= "<B>". t("Fake e-mail address") .":</B><BR>\n"; @@ -128,7 +128,7 @@ function account_site_edit() { if ($user->id) { $output .= "<FORM ACTION=\"account.php\" METHOD=\"post\">\n"; - $output .= "<B>". t("Theme" ) .":</B><BR>\n"; + $output .= "<B>". t("Theme") .":</B><BR>\n"; foreach ($themes as $key=>$value) $options1 .= " <OPTION VALUE=\"$key\"". (($user->theme == $key) ? " SELECTED" : "") .">$key - $value[1]</OPTION>\n"; $output .= "<SELECT NAME=\"edit[theme]\">\n$options1</SELECT><BR>\n"; $output .= "<I>". t("Selecting a different theme will change the look and feel of the site.") ."</I><P>\n"; @@ -319,7 +319,7 @@ function account_email_submit($userid, $email) { mail($email, $subject, $message, "From: noreply"); - $output = "Your password and further instructions have been sent to your e-mail address."; + $output = t("Your password and further instructions have been sent to your e-mail address."); } else { watchdog("warning", "new password: '$userid' and <$email> do not match"); @@ -371,21 +371,21 @@ function account_create_confirm($name, $hash) { if ($account->status == 1) { if ($account->hash == $hash) { db_query("UPDATE users SET status = 2, hash = '' WHERE userid = '$name'"); - $output .= "Your account has been successfully confirmed. You can click <A HREF=\"account.php?op=login\">here</A> to login.\n"; + $output = t("Your account has been successfully confirmed."); watchdog("message", "$name: account confirmation successful"); } else { - $output .= "Confirmation failed: invalid confirmation hash.\n"; + $output = t("Confirmation failed: invalid confirmation hash."); watchdog("warning", "$name: invalid confirmation hash"); } } else { - $output .= "Confirmation failed: your account has already been confirmed. You can click <A HREF=\"account.php?op=login\">here</A> to login.\n"; + $output = t("Confirmation failed: your account has already been confirmed."); watchdog("warning", "$name: attempt to re-confirm account"); } } else { - $output .= "Confirmation failed: no such account found.<BR>"; + $output = t("Confirmation failed: non-existing account."); watchdog("warning", "$name: attempt to confirm non-existing account"); } |