rem: glocale = preferencesService.getIntPref("translate.userlanguage"); 
add: if(preferencesService.prefHasUserValue("translate.userlanguage")) { glocale = preferencesService.getIntPref("translate.userlanguage"); } 
context: function translateInit(){	document.getElementById("contentAreaContextMenu").addEventListener("popupshowing",onTranslatePopup,false);	gTranslateBundle = document.getElementById("bundle-translate");		  if (! gTranslateBundle)  {      alert("no bundle");  }    const preferencesService = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch("");  glocale = preferencesService.getIntPref("translate.userlanguage");    initOptionsMenu();     	  initMenus();   }
meta: 9817	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9817/5a9a40c495992db6e45185e08a3a5ee87943e703/translate.js/buggy/trunk/chrome/content/translate.js