# HG changeset patch # User Dan # Date 1200955137 18000 # Node ID 390eb356cd499d75b14823544b849396d1b0eff9 # Parent 2220bab5c78431334bc479bdf1e6f516bfa924e5 Finished l10n on user CP diff -r 2220bab5c784 -r 390eb356cd49 language/english/user.json --- a/language/english/user.json Mon Jan 21 15:38:50 2008 -0500 +++ b/language/english/user.json Mon Jan 21 17:38:57 2008 -0500 @@ -162,15 +162,14 @@ emailpassword_err_list: 'The following errors were encountered while saving your e-mail address:', emailpassword_err_title: 'Error updating e-mail address', emailpassword_err_demo: 'You can\'t change your password in demo mode.', - // This is an in-joke. - emailpassword_err_password_too_short: 'Password must be at least 6 characters. You hacked my script, darn you!', + emailpassword_err_password_too_short: 'The new password must be 6 characters or greater in length.', emailpassword_err_password_too_weak: 'Your password did not meet the complexity score requirement for this site. Your password scored %score%, while a score of at least %config.pw_strength_minimum% is needed.', emailpassword_msg_profile_success: 'Profile changed', emailpassword_msg_pass_success: 'Password changed', emailpassword_msg_need_activ_user: 'Your password and e-mail address have been changed. Since e-mail activation is required on this site, you will need to re-activate your account to continue. An e-mail has been sent to the new e-mail address with an activation link. You must click that link in order to log in again.', emailpassword_msg_need_activ_admin: 'Your password and e-mail address have been changed. Since administrative activation is requires on this site, a request has been sent to the administrators to activate your account for you. You will not be able to use your account until it is activated by an administrator.', emailpassword_msg_password_changed: 'Your password has been changed, and you will now be redirected back to the user control panel.', - emailpassword_err_password_no_match: 'The passwords you entered did not match', + emailpassword_err_password_no_match: 'The passwords you entered do not match.', emailpassword_grp_chpasswd: 'Change password', emailpassword_field_newpass: 'Type a new password:', emailpassword_field_newpass_confirm: 'Type the password again to confirm:', @@ -187,6 +186,26 @@ // Additional profile info publicinfo_title: 'Editing public profile', + publicinfo_msg_save_success: 'Your profile has been updated.', + publicinfo_heading_main: 'Your public profile', + publicinfo_note_optional: 'Please note that all of the information you enter here will be publicly viewable. All of the fields on this page are optional and may be left blank if you so desire.', + publicinfo_field_realname: 'Real name:', + publicinfo_field_changetheme_title: 'Change theme:', + publicinfo_field_changetheme_hint: 'If you don\'t like the look of the site, need a visual break, or are just curious, we might have some different themes for you to try out!', + publicinfo_field_changetheme: 'Change my theme...', + publicinfo_th_im: 'Instant messenger contact information', + publicinfo_field_aim: 'AIM handle:', + publicinfo_field_wlm: 'WLM handle:
If you don\'t specify the domain (@whatever.com), "@hotmail.com" will be assumed.', + publicinfo_field_yim: 'Yahoo! IM handle:', + publicinfo_field_xmpp: 'Jabber™/XMPP handle:', + publicinfo_th_contact: 'Extra contact information', + publicinfo_field_homepage: 'Your homepage:
Please remember the http:// prefix.', + publicinfo_field_location: 'Your location:', + publicinfo_field_job: 'Your job:', + publicinfo_field_hobbies: 'Your hobbies:', + publicinfo_field_email_public: 'E-mail address is public', + publicinfo_field_email_public_hint: 'If this is checked, your e-mail address will be displayed on your user page. To protect your address from spambots, your e-mail address will be encrypted.', + publicinfo_btn_save: 'Save profile', // Avatar management avatar_err_disabled_title: 'Avatar support is disabled.', diff -r 2220bab5c784 -r 390eb356cd49 plugins/SpecialUserPrefs.php --- a/plugins/SpecialUserPrefs.php Mon Jan 21 15:38:50 2008 -0500 +++ b/plugins/SpecialUserPrefs.php Mon Jan 21 17:38:57 2008 -0500 @@ -415,6 +415,20 @@ var frm = document.forms.empwform; if ( frm.newpass.value.length < 1 ) return true; + + pass1 = frm.newpass.value; + pass2 = frm.newpass_conf.value; + if ( pass1 != pass2 ) + { + alert($lang.get('usercp_emailpassword_err_password_no_match')); + return false; + } + if ( pass1.length < 6 && pass1.length > 0 ) + { + alert($lang.get('usercp_emailpassword_err_password_too_short')); + return false; + } + if(aes_testpassed) { frm.use_crypt.value = 'yes'; @@ -427,21 +441,6 @@ len = ( typeof cryptkey == 'string' || typeof cryptkey == 'object' ) ? '\nLen: '+cryptkey.length : ''; alert('The key is messed up\nType: '+typeof(cryptkey)+len); } - } - pass1 = frm.newpass.value; - pass2 = frm.newpass_conf.value; - if ( pass1 != pass2 ) - { - alert('The passwords you entered do not match.'); - return false; - } - if ( pass1.length < 6 && pass1.length > 0 ) - { - alert('The new password must be 6 characters or greater in length.'); - return false; - } - if(aes_testpassed) - { pass = frm.newpass.value; pass = stringToByteArray(pass); cryptstring = rijndaelEncrypt(pass, cryptkey, 'ECB'); @@ -548,74 +547,74 @@ if ( !$q ) $db->_die(); - echo '
Your profile has been updated.
'; + echo '
' . $lang->get('usercp_publicinfo_msg_save_success') . '
'; } echo '
'; ?>
- + - + - + - - + + - + - + - + - + - + - + - + - + - +
Your public profileget('usercp_publicinfo_heading_main'); ?>
Please note that all of the information you enter here will be publicly viewable. All of the fields on this page are optional and may be left blank if you so desire.get('usercp_publicinfo_note_optional'); ?>
Real name:get('usercp_publicinfo_field_realname'); ?>
Change theme:If you don't like the look of the site, need a visual break, or are just curious, we might have some different themes for you to try out! Change my theme...get('usercp_publicinfo_field_changetheme_title'); ?>get('usercp_publicinfo_field_changetheme_hint'); ?> get('usercp_publicinfo_field_changetheme'); ?>
- Instant messenger contact information + get('usercp_publicinfo_th_im'); ?>
AIM handle:get('usercp_publicinfo_field_aim'); ?>
WLM handle:
If you don't specify the domain (@whatever.com), "@hotmail.com" will be assumed.
get('usercp_publicinfo_field_wlm'); ?>
Yahoo! IM handle:get('usercp_publicinfo_field_yim'); ?>
Jabber/XMPP handle:get('usercp_publicinfo_field_xmpp'); ?>
- Extra contact information + get('usercp_publicinfo_th_contact'); ?>
Your homepage:
Please remember the http:// prefix.
get('usercp_publicinfo_field_homepage'); ?>
Your location:get('usercp_publicinfo_field_location'); ?>
Your job:get('usercp_publicinfo_field_job'); ?>
Your hobbies:get('usercp_publicinfo_field_hobbies'); ?>

If this is checked, your e-mail address will be displayed on your user page. To protect your address from spambots, your e-mail address will be encrypted.

get('usercp_publicinfo_field_email_public_hint'); ?>
user_extra['email_public'] == 1) echo 'checked="checked"'; ?> size="30" />
- +