includes/clientside/static/login.js
changeset 478 376a01d8386d
parent 472 bc4b58034f4d
child 509 175df10e0b56
equal deleted inserted replaced
477:c4d6e9b3b964 478:376a01d8386d
   326 {
   326 {
   327   // Did the server send a plaintext error?
   327   // Did the server send a plaintext error?
   328   if ( response.mode == 'error' )
   328   if ( response.mode == 'error' )
   329   {
   329   {
   330     logindata.mb_object.destroy();
   330     logindata.mb_object.destroy();
   331     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);
   331     var error_msg = $lang.get('user_' + ( response.error.toLowerCase() ));
       
   332     new messagebox(MB_ICONSTOP | MB_OK, $lang.get('user_err_login_generic_title'), error_msg);
   332     return false;
   333     return false;
   333   }
   334   }
   334   // Main mode switch
   335   // Main mode switch
   335   switch ( response.mode )
   336   switch ( response.mode )
   336   {
   337   {