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