rem:  var locale = prefs.CopyCharPref("intl.content.langcode"); if (locale == "") {  debug("\n -->intl.content.langcode:  activation part not ready yet! \n"); var locale_progid = 'component: var syslocale = Components.classes[locale_progid].getService(); syslocale = syslocale.QueryInterface(Components.interfaces.nsILocaleService); locale = syslocale.GetLocaleComponentForUserAgent(); } locale = locale.toLowerCase(); url = url.replace(/%LOCALE%/g, locale);  debug("Remote url is " + url); 
add: locale = prefs.CopyCharPref("intl.content.langcode"); 
context: function get_remote_datasource_url() {  var url = '';  var prefs = Components.classes['component://netscape/preferences'];  if (prefs) {    prefs = prefs.getService();  }  if (prefs) {    prefs = prefs.QueryInterface(Components.interfaces.nsIPref);  }  if (prefs) {    try {      url = prefs.CopyCharPref("sidebar.customize.all_panels.url");      url = url.replace(/%SIDEBAR_VERSION%/g, SIDEBAR_VERSION);	  var locale = prefs.CopyCharPref("intl.content.langcode");	  if (locale == "") {		// activation part not ready yet!		debug("\n -->intl.content.langcode:  activation part not ready yet! \n");		var locale_progid = 'component://netscape/intl/nslocaleservice';		var syslocale = Components.classes[locale_progid].getService();		syslocale = syslocale.QueryInterface(Components.interfaces.nsILocaleService);		locale = syslocale.GetLocaleComponentForUserAgent();	  }      locale = locale.toLowerCase();      url = url.replace(/%LOCALE%/g, locale);      debug("Remote url is " + url);    } catch(ex) {      debug("Unable to get remote url pref. What now? "+ex);    }  }  return url;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/af173fb103c008c85345f211432613f3e567ff91/sidebarOverlay.js/clean/xpfe/components/sidebar/resources/sidebarOverlay.js