rem: var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService(); if ( chromeRegistry ) { chromeRegistry = chromeRegistry.QueryInterface( Components.interfaces.nsIChromeRegistry ); } 
context: function selectLocale(event){  try {    var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService();    if ( chromeRegistry ) {      chromeRegistry = chromeRegistry.QueryInterface( Components.interfaces.nsIChromeRegistry );    }    var node = event.target;    var langcode = node.getAttribute('value');    var prefUtilBundle = srGetStrBundle("chrome://communicator/locale/pref/prefutilities.properties");    var brandBundle = srGetStrBundle("chrome://global/locale/brand.properties");    var alertText = prefUtilBundle.GetStringFromName("languageAlert");    var titleText = prefUtilBundle.GetStringFromName("languageTitle");    alertText = alertText.replace(/%brand%/g, brandBundle.GetStringFromName("brandShortName"));    var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService();    promptService = promptService.QueryInterface(Components.interfaces.nsIPromptService)    promptService.alert(window, titleText, alertText);  }  catch(e) {    return false;  }  return true;	}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a7d8e5b09f82f0ba84ce0ce4aee7971b3e7de429/strres.js/buggy/xpfe/global/resources/content/strres.js