add: var region = ""; 
context:   _loadAvailableLanguages: function ()  {    // This is a parser for: resource://gre/res/language.properties    // The file is formatted like so:    // ab[-cd].accept=true|false    //  ab = language    //  cd = region    var bundleAccepted    = document.getElementById("bundleAccepted");    var bundleRegions     = document.getElementById("bundleRegions");    var bundleLanguages   = document.getElementById("bundleLanguages");    var bundlePreferences = document.getElementById("bundlePreferences");    function LanguageInfo(aName, aABCD, aIsVisible)    {      this.name = aName;      this.abcd = aABCD;      this.isVisible = aIsVisible;    }    // 1) Read the available languages out of language.properties    var strings = bundleAccepted.strings;    while (strings.hasMoreElements()) {      var currString = strings.getNext();      if (!(currString instanceof Components.interfaces.nsIPropertyElement))        break;            var property = currString.key.split("."); // ab[-cd].accept      if (property[1] == "accept") {        var abCD = property[0];        var abCDPairs = abCD.split("-");      // ab[-cd]        var useABCDFormat = abCDPairs.length > 1;        var ab = useABCDFormat ? abCDPairs[0] : abCD;        var cd = useABCDFormat ? abCDPairs[1] : "";        if (ab) {          var language = region = "";          try {            language = bundleLanguages.getString(ab);          }           catch (e) { continue; };                              if (useABCDFormat) {            try {              region = bundleRegions.getString(cd);            }            catch (e) { continue; }          }                    var name = "";          if (useABCDFormat)            name = bundlePreferences.getFormattedString("languageRegionCodeFormat",                                                         [language, region, abCD]);          else            name = bundlePreferences.getFormattedString("languageCodeFormat",                                                         [language, abCD]);                    if (name && abCD) {            var isVisible = currString.value == "true" &&                             (!(abCD in this._acceptLanguages) || !this._acceptLanguages[abCD]);            var li = new LanguageInfo(name, abCD, isVisible);            this._availableLanguagesList.push(li);          }        }      }    }    this._buildAvailableLanguageList();  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/3c2553f425837c0ac00c77b81c1ddb6b63e2d23e/languages.js/buggy/browser/components/preferences/languages.js