From 807fd4d65597df024d8a253e86db2665e394b836 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 5 Mar 2007 11:37:59 +0100 Subject: [PATCH] more i18n in filters --- modules/pref-users.php | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/modules/pref-users.php b/modules/pref-users.php index 40223160..1e0b1dd3 100644 --- a/modules/pref-users.php +++ b/modules/pref-users.php @@ -75,7 +75,7 @@ if ($password) { $pwd_hash = 'SHA1:' . sha1($password); $pass_query_part = "pwd_hash = '$pwd_hash', "; - print format_notice(sprintf(__('Changed password for user %s.'), $login)); + print format_notice(sprintf(__('Changed password of user %s.'), $login)); } else { $pass_query_part = ""; } @@ -120,20 +120,21 @@ $new_uid = db_fetch_result($result, 0, "id"); - print "
Added user ".$_GET["login"]. - " with password $tmp_user_pwd.
"; + print format_notice(sprintf(__("Added user %s + with password %s"), $login, $tmp_user_pwd)); initialize_user($link, $new_uid); } else { - print "
Could not create user ". - $_GET["login"]."
"; + print format_warning(sprintf(__("Could not create user %s"), + $login)); } } else { - print "
User ". - $_GET["login"]." already exists.
"; + print format_warning(sprintf(__("User %s already exists."), + $login)); + } } } else if ($subop == "resetPass") { @@ -153,8 +154,8 @@ db_query($link, "UPDATE ttrss_users SET pwd_hash = '$pwd_hash' WHERE id = '$uid'"); - print "
Changed password of - user $login to $tmp_user_pwd."; + print format_notice(sprintf(__("Changed password of user %s + to %s"), $login, $tmp_user_pwd)); if (MAIL_RESET_PASS && $email) { print " Notifying $email."; @@ -190,7 +191,7 @@ print "
"; + onclick=\"javascript:addUser()\" value=\"".__('Create user')."\">"; $result = db_query($link, "SELECT id,login,access_level,email, -- 2.39.5