rem: if (regionBundle && menuStr && isoStrArray.length > 1 && isoStrArray[1]) 
add: if (regionBundle && dictList[i][0] && isoStrArray.length > 1 && isoStrArray[1]) 
context: function InitLanguageMenu(curLang){  ClearMenulist(dialog.LanguageMenulist);  var o1 = {};  var o2 = {};  // Get the list of dictionaries from  // the spellchecker.  try {    spellChecker.GetDictionaryList(o1, o2);  } catch(ex) {    dump("Failed to get DictionaryList!\n");    return;  }  var dictList = o1.value;  var count    = o2.value;  // Load the string bundles that will help us map  // RFC 1766 strings to UI strings.  var languageBundle;  var regionBundle;  var menuStr;  var menuStr2;  var isoStrArray;  var defaultIndex = 0;  // Try to load the language string bundle.  try {    languageBundle = srGetStrBundle("chrome://global/locale/languageNames.properties");  } catch(ex) {    languageBundle = null;  }  // If we have a language string bundle, try to load the region string bundle.  if (languageBundle)  {    try {      regionBundle = srGetStrBundle("chrome://global/locale/regionNames.properties");    } catch(ex) {      regionBundle = null;    }  }  for (var i = 0; i < dictList.length; i++)  {    try {      isoStrArray = dictList[i].split("-");      if (languageBundle && isoStrArray[0])        menuStr = languageBundle.GetStringFromName(isoStrArray[0].toLowerCase());      if (regionBundle && menuStr && isoStrArray.length > 1 && isoStrArray[1])      {        menuStr2 = regionBundle.GetStringFromName(isoStrArray[1].toLowerCase());        if (menuStr2)          menuStr = menuStr + "/" + menuStr2;      }      if (!menuStr)        menuStr = dictList[i];    } catch (ex) {      // GetStringFromName throws an exception when      // a key is not found in the bundle. In that      // case, just use the original dictList string.      menuStr = dictList[i];    }    if (curLang && dictList[i] == curLang)      defaultIndex = i;    AppendLabelAndValueToMenulist(dialog.LanguageMenulist, menuStr, dictList[i]);  }  // Now make sure the correct item in the menu list is selected.  if (dictList.length > 0)    dialog.LanguageMenulist.selectedIndex = defaultIndex;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/4d10a32ba059a0afdee2ccac40d614c4a5b86afb/EdSpellCheck.js/clean/editor/ui/dialogs/content/EdSpellCheck.js