# HG changeset patch # User Dan # Date 1204854500 18000 # Node ID 376a01d8386de9e8dfaa56fabf2d4a69dac2e494 # Parent c4d6e9b3b9647e85a8a13863d783d3495e5cfa55 Localized some remaining login bits diff -r c4d6e9b3b964 -r 376a01d8386d includes/clientside/static/login.js --- a/includes/clientside/static/login.js Thu Mar 06 20:47:48 2008 -0500 +++ b/includes/clientside/static/login.js Thu Mar 06 20:48:20 2008 -0500 @@ -328,7 +328,8 @@ if ( response.mode == 'error' ) { logindata.mb_object.destroy(); - new messagebox(MB_ICONSTOP | MB_OK, 'FIXME L10N: There was an error in the login process', 'The following error code came from the server:
' + response.error); + var error_msg = $lang.get('user_' + ( response.error.toLowerCase() )); + new messagebox(MB_ICONSTOP | MB_OK, $lang.get('user_err_login_generic_title'), error_msg); return false; } // Main mode switch diff -r c4d6e9b3b964 -r 376a01d8386d language/english/user.json --- a/language/english/user.json Thu Mar 06 20:47:48 2008 -0500 +++ b/language/english/user.json Thu Mar 06 20:48:20 2008 -0500 @@ -70,8 +70,11 @@ login_ajax_check_dh: 'Enable strong encryption during logon? Learn more', login_ajax_check_dh_ie: 'Use a standards-compliant browser to help protect your password. Learn more', + err_login_generic_title: 'There was an error in the login process', err_key_not_found: 'Enano couldn\'t look up the encryption key used to encrypt your password. This most often happens if a cache rotation occurred during your login attempt, or if you refreshed the login page.', err_key_not_found_cleared: 'It seems that the list of encryption keys used for login information has reached its maximum length, thus preventing new keys from being inserted. The list has been automatically cleared. Please try logging in again; if you are still unable to log in, please contact the site administration.', + err_dh_key_not_found: 'Enano couldn\'t retrieve the private key used for the high-strength encrypted logon. It is possible that the list of keys was cleared during your logon process as this happens approximately once every 72 hours. Please try logging in again; if you are still unable to log in, please contact the site administration.', + err_dh_key_not_numeric: 'The Diffie-Hellman public key you sent through was not an arbitrary-precision decimal integer.', err_key_wrong_length: 'The encryption key was the wrong length.', err_too_big_for_britches: 'You are trying to authenticate at a level that your user account does not permit.', err_invalid_credentials: 'You have entered an invalid username or password. Please enter your login details again.', @@ -97,11 +100,13 @@ level_short_chpref: 'Sensitive preferences changeable', level_short_mod: 'Moderator', level_short_admin: 'Administrative', + level_short_unknown: 'Unknown (level %user_level%)', level_long_guest: 'Low - guest privileges', level_long_member: 'Standard - normal member level', level_long_chpref: 'Medium - user can change his/her own e-mail address and password', level_long_mod: 'High - moderator privileges', level_long_admin: 'Highest - administrative privileges', + level_long_unknown: 'Unknown privileges (level %user_level%)', ban_msg_title: 'Ban notice', ban_msg_body: 'You have been banned from this website. Please contact the site administrator for more information.',