Index: openacs-4/packages/acs-authentication/tcl/authentication-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-authentication/tcl/authentication-procs.tcl,v diff -u -r1.72 -r1.73 --- openacs-4/packages/acs-authentication/tcl/authentication-procs.tcl 1 Mar 2005 00:01:21 -0000 1.72 +++ openacs-4/packages/acs-authentication/tcl/authentication-procs.tcl 13 Mar 2005 23:51:14 -0000 1.73 @@ -180,16 +180,16 @@ if { [empty_string_p $email] } { set result(auth_status) "auth_error" if { [auth::UseEmailForLoginP] } { - set result(auth_message) "Email required" + set result(auth_message) [_ acs-subsite.Email_required] } else { - set result(auth_message) "Username required" + set result(auth_message) [_ acs-subsite.Username_required] } return [array get result] } set user_id [cc_lookup_email_user $email] if { [empty_string_p $user_id] } { set result(auth_status) "no_account" - set result(auth_message) "Unknown email" + set result(auth_message) [_ acs-subsite.Unknown_email] return [array get result] } acs_user::get -user_id $user_id -array user @@ -250,7 +250,7 @@ ns_log Error "auth::authenticate: Illegal auth_status code '$result(auth_status)' returned from authentication driver for authority_id $authority_id ([auth::authority::get_element -authority_id $authority_id -element pretty_name])" set result(auth_status) "failed_to_connect" - set result(auth_message) "Internal error during authentication" + set result(auth_message) [_ acs-subsite.Auth_internal_error] return [array get result] } } @@ -265,14 +265,14 @@ } closed { if { ![exists_and_not_null result(account_message)] } { - set result(account_message) "This account is not available at this time" + set result(account_message) [_ acs-subsite.Account_not_avail_now] } } default { ns_log Error "auth::authenticate: Illegal account_status code '$result(account_status)' returned from authentication driver for authority_id $authority_id ([auth::authority::get_element -authority_id $authority_id -element pretty_name])" set result(account_status) "closed" - set result(account_message) "Internal error during authentication" + set result(account_message) [_ acs-subsite.Auth_internal_error] } } @@ -307,14 +307,14 @@ } closed { if { ![exists_and_not_null result(account_message)] } { - set result(account_message) "This account is not available at this time" + set result(account_message) [_ acs-subsite.Account_not_avail_now] } } default { ns_log Error "auth::authenticate: Illegal account_status code '$result(account_status)' returned from auth::get_local_account for authority_id $authority_id ([auth::authority::get_element -authority_id $authority_id -element pretty_name])" set result(account_status) "closed" - set result(account_message) "Internal error during authentication" + set result(account_message) [_ acs-subsite.Auth_internal_error] } } @@ -444,9 +444,9 @@ if { ![string equal $password $password_confirm] } { return [list \ creation_status data_error \ - creation_message "Passwords don't match" \ + creation_message [_ acs-subsite.Passwords_dont_match] \ element_messages [list \ - password_confirm "Passwords don't match"]] + password_confirm [_ acs-subsite.Passwords_dont_match] ]] } } @@ -561,7 +561,7 @@ } closed { if { ![exists_and_not_null creation_info(account_message)] } { - set creation_info(account_message) "This account is not available at this time" + set creation_info(account_message) [_ acs-subsite.Account_not_avail_now] } } default { @@ -936,7 +936,7 @@ if { $error_p || $user_id == 0 } { set result(creation_status) "failed_to_connect" - set result(creation_message) "We experienced an error while trying to register an account for you." + set result(creation_message) [_ acs-subsite.Error_trying_to_register] global errorInfo ns_log Error "auth::create_local_account: Error creating local account.\n$errorInfo" return [array get result] @@ -962,7 +962,7 @@ } { global errorInfo ns_log Error "auth::create_local_account: Error sending out email verification email to email $email:\n$errorInfo" - set auth_info(account_message) "We got an error sending out the email for email verification" + set auth_info(account_message) [_ acs_subsite.Error_sending_verification_mail] } } @@ -1091,7 +1091,7 @@ if { $error_p } { set result(update_status) "failed_to_connect" - set result(update_message) "We experienced an error while trying to update the account information." + set result(update_message) [_ acs-subsite.Error_update_account_info] global errorInfo ns_log Error "Error updating local account.\n$errorInfo" return [array get result] @@ -1132,7 +1132,7 @@ if { [empty_string_p $user_id] } { set result(delete_status) "delete_error" - set result(delete_message) "No user found with this username" + set result(delete_message) [_ acs-subsite.No_user_with_this_username] return [array get result] } @@ -1227,10 +1227,10 @@ # Used to get help contact info auth::authority::get -authority_id $authority_id -array authority set system_name [ad_system_name] - set auth_info(account_message) "You have successfully authenticated, but you do not have an account on $system_name yet." + set auth_info(account_message) [_ acs-subsite.Success_but_no_account_yet] if { ![empty_string_p $authority(help_contact_text)] } { - append auth_info(account_message) "
[_ acs-subsite.lt_registration_request_submitted]
[_ acs-subsite.Thank_you]
" } default { - set result(account_message) \ - "There was a problem authenticating the account. Most likely, the database contains users with no member_state." + set result(account_message) [_ acs-subsite.Problem_auth_no_memb] ns_log Error "auth::check_local_account_status: problem with registration state machine: user_id $user_id has member_state '$member_state'" } } @@ -1418,7 +1417,8 @@ -username $username] if { [empty_string_p $user(user_id)] } { - set element_messages(username) "No user with username '$username' found for authority [auth::authority::get_element -authority_id $authority_id -element pretty_name]" + set this_authority [auth::authority::get_element -authority_id $authority_id -element pretty_name] + set element_messages(username) [_ acs-subsite.Username_not_found_for_authority] } } else { set user(username) $username @@ -1436,7 +1436,7 @@ if { [exists_and_not_null user(email)] } { if { ![util_email_valid_p $user(email)] } { - set element_messages(email) "This is not a valid email address" + set element_messages(email) [_ acs-subsite.Not_valid_email_addr] } else { set user(email) [string tolower $user(email)] } @@ -1455,7 +1455,7 @@ if { [info exists user(screen_name)] } { set screen_name_user_id [acs_user::get_user_id_by_screen_name -screen_name $user(screen_name)] if { ![empty_string_p $screen_name_user_id] && (!$update_p || $screen_name_user_id != $user(user_id)) } { - set element_messages(screen_name) "This screen name is already taken." + set element_messages(screen_name) [_ acs-subsite.screen_name_already_taken] # We could do the same logic as below with 'stealing' the screen_name of an old, banned user. } @@ -1471,7 +1471,7 @@ # or it's not the same user_id as the one we're updating if { ![string equal [acs_object_type $email_party_id] "user"] } { - set element_messages(email) "We already have a group with this email" + set element_messages(email) [_ acs-subsite.Have_group_mail] } else { acs_user::get \ -user_id $email_party_id \ @@ -1486,7 +1486,7 @@ -email "dummy-email-$email_party_id" } default { - set element_messages(email) "We already have a user with this email." + set element_messages(email) [_ acs-subsite.Have_user_mail] } } } @@ -1511,7 +1511,7 @@ -username "dummy-username-$username_user_id" } default { - set element_messages(username) "We already have a user with this username." + set element_messages(username) [_ acs-subsite.Have_user_name] } } } Index: openacs-4/packages/acs-subsite/catalog/acs-subsite.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/catalog/acs-subsite.en_US.ISO-8859-1.xml,v diff -u -r1.60 -r1.61 --- openacs-4/packages/acs-subsite/catalog/acs-subsite.en_US.ISO-8859-1.xml 1 Mar 2005 14:46:44 -0000 1.60 +++ openacs-4/packages/acs-subsite/catalog/acs-subsite.en_US.ISO-8859-1.xml 13 Mar 2005 23:51:13 -0000 1.61 @@ -24,6 +24,7 @@ <a href="%login_url%">Log in</a> again to see what you can do about it. </p&;gt; +