rem: var langcode = window.frames["content"].document.getElementById("langList").selectedItem.getAttribute("data"); proceed = processCreateProfileData( profName, profDir, langcode); 
add: proceed = processCreateProfileData(profName, profDir, profLocale); 
context: function onFinish(){  dump("*** IN ONFINISH\n");  // check if we're at final stage   if( !wizardManager.wizardMap[wizardManager.currentPageTag].finish )    return;  var tag =  wizardManager.WSM.GetTagFromURL( wizardManager.content_frame.src, "/", ".xul" );  wizardManager.WSM.SavePageData( tag, null, null, null );  var profName = wizardManager.WSM.PageData["newProfile1_2"].ProfileName.value;  dump("**** profName: "+ profName + "\n");  var profDir = wizardManager.WSM.PageData["newProfile1_2"].ProfileDir.value;  // Get langcode  var langcode = window.frames["content"].document.getElementById("langList").selectedItem.getAttribute("data");  proceed = processCreateProfileData( profName, profDir, langcode);   if( proceed ) {    if( window.opener ) {      window.opener.CreateProfile( profName, profDir );      window.close();      // select locale      selectLocale(langcode);    }    else {      profile.startApprunner( profName );      ExitApp();    }  }  else    return;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/810573d7b5cc0b5faa4e4fea768568edc82f0adc/createProfileWizard.js/buggy/profile/resources/content/createProfileWizard.js