rem: var isoStrArray = list[i].split("-"); 
add: isoStrArray = list[i].split("-"); 
context:   addDictionaryListToMenu: function(menu, insertBefore)  {    this.mDictionaryMenu = menu;    this.mDictionaryNames = [];    this.mDictionaryItems = [];    if (! this.mLanguageBundle) {      // create the bundles for language and region      var bundleService = Components.classes["@mozilla.org/intl/stringbundle;1"]                                    .getService(Components.interfaces.nsIStringBundleService);      this.mLanguageBundle = bundleService.createBundle(          "chrome://global/locale/languageNames.properties");      this.mRegionBundle = bundleService.createBundle(          "chrome://global/locale/regionNames.properties");    }    if (! this.mInlineSpellChecker || ! this.enabled)      return 0;    var spellchecker = this.mInlineSpellChecker.spellChecker;    var o1 = {}, o2 = {};    spellchecker.GetDictionaryList(o1, o2);    var list = o1.value;    var listcount = o2.value;    var curlang = spellchecker.GetCurrentDictionary();    var isoStrArray;    for (var i = 0; i < list.length; i ++) {      // get the display name for this dictionary      var isoStrArray = list[i].split("-");      var displayName = "";      if (this.mLanguageBundle && isoStrArray[0]) {        try {          displayName = this.mLanguageBundle.GetStringFromName(isoStrArray[0].toLowerCase());        } catch(e) {} // ignore language bundle errors        if (this.mRegionBundle && isoStrArray[1]) {          try {            displayName += " / " + this.mRegionBundle.GetStringFromName(isoStrArray[1].toLowerCase());          } catch(e) {} // ignore region bundle errors        }      }      // if we didn't get a name, just use the raw dictionary name      if (displayName.length == 0)        displayName = list[i];      this.mDictionaryNames.push(list[i]);      var item = document.createElement("menuitem");      item.setAttribute("label", displayName);      item.setAttribute("type", "checkbox");      this.mDictionaryItems.push(item);      if (curlang == list[i]) {        item.setAttribute("checked", "true");      } else {        var callback = function(me, val) { return function(evt) { me.selectDictionary(val); } };        item.addEventListener("command", callback(this, i), true);      }      if (insertBefore)        menu.insertBefore(item, insertBefore);      else        menu.appendChild(item);    }    return list.length;  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1be2fb4fc3462bf1f897fc9c6b843e7b7564d6a1/inlineSpellCheckUI.js/buggy/toolkit/content/inlineSpellCheckUI.js