includes/clientside/static/pwstrength.js
changeset 586 234ddd896555
parent 504 bc8e0e9ee01d
child 1227 bdac73ed481e
equal deleted inserted replaced
585:35e91d16ecf5 586:234ddd896555
   193 {
   193 {
   194   if ( !$lang )
   194   if ( !$lang )
   195   {
   195   {
   196     // $lang isn't initted yet, this happens sometimes on the usercp/emailpassword form.
   196     // $lang isn't initted yet, this happens sometimes on the usercp/emailpassword form.
   197     // Try to init it if we have ENANO_LANG_ID and enano_lang; if not, report an error.
   197     // Try to init it if we have ENANO_LANG_ID and enano_lang; if not, report an error.
       
   198     load_component('l10n');
   198     if ( typeof(enano_lang) == 'object' && typeof(ENANO_LANG_ID) == 'number' )
   199     if ( typeof(enano_lang) == 'object' && typeof(ENANO_LANG_ID) == 'number' )
   199     {
   200     {
   200       language_onload();
   201       language_onload();
   201     }
   202     }
   202     else
   203     else