equal
deleted
inserted
replaced
58 |
58 |
59 var $lang; |
59 var $lang; |
60 |
60 |
61 var language_onload = function() |
61 var language_onload = function() |
62 { |
62 { |
|
63 if ( typeof(enano_lang) != 'object' ) |
|
64 { |
|
65 language_onload_resched(); |
|
66 return true; |
|
67 } |
|
68 if ( !enano_lang[ENANO_LANG_ID] ) |
|
69 { |
|
70 language_onload_resched(); |
|
71 return true; |
|
72 } |
63 $lang = new Language(ENANO_LANG_ID); |
73 $lang = new Language(ENANO_LANG_ID); |
64 // for debugging :-) |
74 } |
65 // alert( $lang.get('user_err_invalid_credentials_lockout_captcha', { lockout_fails: '3', lockout_threshold: '5', lockout_duration: '15' }) ); |
75 |
|
76 // Rescheduler for language onload - allows delaying init if the string list |
|
77 // isn't ready yet |
|
78 function language_onload_resched() |
|
79 { |
|
80 alert('delaying language init by 0.2s'); |
|
81 setTimeout('language_onload();', 200); |
66 } |
82 } |
67 |
83 |
68 addOnloadHook(language_onload); |
84 addOnloadHook(language_onload); |
69 |
85 |