equal
deleted
inserted
replaced
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 { |