Localized some remaining login bits
authorDan
Thu, 06 Mar 2008 20:48:20 -0500
changeset 478 376a01d8386d
parent 477 c4d6e9b3b964
child 479 192db6ac195b
Localized some remaining login bits
includes/clientside/static/login.js
language/english/user.json
--- 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:<br />' + 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
--- 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? <a href="http://docs.enanocms.org/Help:Appendix_B#dh" onclick="window.open(this.href); return false;">Learn more</a>',
       login_ajax_check_dh_ie: 'Use a standards-compliant browser to help protect your password. <a href="http://docs.enanocms.org/Help:Appendix_B#dh" onclick="window.open(this.href); return false;">Learn more</a>',
       
+      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.',