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) "

Help Information

" + append auth_info(account_message) [_ acs-subsite.Help_information] append auth_info(account_message) [ad_html_text_convert \ -from $authority(help_contact_text_format) \ -to "text/html" -- $authority(help_contact_text)] @@ -1294,7 +1294,7 @@ } { global errorInfo ns_log Error "auth::check_local_account_status: Error sending out email verification email to email $email:\n$errorInfo" - set result(account_message) "We got an error sending out the email for email verification" + set result(account_message) [_ acs-subsite.Error_sending_verification_mail] } } } elseif { [string equal [acs_user::ScreenName] "require"] && [empty_string_p $screen_name] } { @@ -1303,7 +1303,7 @@ } elseif { $PasswordExpirationDays > 0 && \ ([empty_string_p $password_age_days] || $password_age_days > $PasswordExpirationDays) } { - set message "Your password must be changed regularly. Please change your password now." + set message [_ acs-subsite.Password_regular_change_now] set result(account_url) [export_vars -base "[subsite::get_element -element url]user/password-update" { return_url message }] } else { set result(account_status) "ok" @@ -1321,8 +1321,7 @@ "

[_ 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; + This account is not available at this time. Your account at %system_name% has been reopened. Welcome back. Account Reopened Action @@ -38,6 +39,7 @@ Applications Approve at + Internal error during authentication Authority Bad Password Ban @@ -127,6 +129,7 @@ Don't show E-mail Not available Email not Requested + Email required Your forgotten password on %system_name% Welcome to %system_name% Enabled @@ -135,6 +138,9 @@ erase portrait Error Error sending mail + We got an error sending out the email for email verification + We experienced an error while trying to register an account for you. + We experienced an error while trying to update the account information Expires Filename First names @@ -145,6 +151,10 @@ go upload your portrait Grant Grant Permission + We already have a group with this email + We already have a user with this email. + We already have a user with this username. + <p><h3>Help Information</h3> Hide Home page If you were to @@ -279,10 +289,12 @@ your portrait No %pretty_plural% No services + No user found with this username none Used to indicate that a list of permissions or objects is empty. Not logged in + This is not a valid email address Notes: Notice: on %name% to: @@ -310,12 +322,16 @@ 3. Choose "%password_update_link_text%" Password changed + Your password must be changed + regularly. Please change your password now. + Passwords don't match This permission cannot be removed. Permissions permissions Permissions for %name% Please return to %home_link%. Portrait + There was a problem authenticating the account. Most likely, the database contains users with no member_state. Profile Question Re-enable @@ -338,6 +354,7 @@ Role Save comment Screen name + This screen name is already taken. Search For An Existing User Security context root Select an Object by Id: @@ -355,6 +372,7 @@ subsite Subsites subsites + You have successfully authenticated, but you do not have an account on %system_name% yet. Thank you. The ISO codes were not loaded on this server. This group is closed. New members can only get access by invitation. @@ -364,6 +382,7 @@ Topic type-specific info + Unknown email UP Can we please have a description of this key?? @@ -375,6 +394,8 @@ upload a replacement portrait Upload Portrait Username + No user with username '%username%' found for authority %this_authority% + Username required User's Site Map Vacation Information Updated Your vacation information at %site_link% has been updated.