rem:  if (curLang && dictList[i] == curLang) defaultIndex = i; 
context: function InitLanguageMenu(curLang){  ClearMenulist(dialog.LanguageMenulist);  var o1 = {};  var o2 = {};  // Get the list of dictionaries from  // the spellchecker.  spellChecker.GetDictionaryList(o1, o2);  var dictList = o1.value;  var count    = o2.value;  // Load the string bundle that will help us map  // RFC 1766 strings to UI strings.  var bundle = srGetStrBundle("resource:/res/acceptlanguage.properties");   var menuStr;  var defaultIndex = 0;  for (var i = 0; i < dictList.length; i++)  {    try {      menuStr = bundle.GetStringFromName(dictList[i]+".title");      if (!menuStr)        menuStr = dictList[i];      if (curLang && dictList[i] == curLang)        defaultIndex = 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];    }    AppendValueAndDataToMenulist(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: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/cde316513c11d7024edf60587d2b19597a9a2ea5/EdSpellCheck.js/buggy/editor/ui/dialogs/content/EdSpellCheck.js