rem:  curItem = curItem.QueryInterface(Components.interfaces.nsIPropertyElement); 
add:  curItem = curItem.QueryInterface(Components.interfaces.nsIPropertyElement); 
context: function ReadAvailableLanguages(){    availLanguageDict   = new Array();    var visible = new String();    var str = new String();    var i =0;    var acceptedBundleEnum = acceptedBundle.getSimpleEnumeration();    var curItem;  var stringName;  var stringNameProperty;    while (acceptedBundleEnum.hasMoreElements()) {       //progress through the bundle       curItem = acceptedBundleEnum.getNext();       //"unpack" the item, nsIPropertyElement is now partially scriptable       curItem = curItem.QueryInterface(Components.interfaces.nsIPropertyElement);       //dump string name (key)       stringName = curItem.key;       stringNameProperty = stringName.split('.');       if (stringNameProperty[1] == 'accept') {          //dump the UI string (value)           visible   = curItem.value;          //if (visible == 'true') {             str = stringNameProperty[0];             var stringLangRegion = stringNameProperty[0].split('-');             if (stringLangRegion[0]) {                 var tit;                 try {                    tit = languagesBundle.GetStringFromName(stringLangRegion[0]);                 }                 catch (ex) {                    tit = "";                 }                 if (stringLangRegion.length > 1) {                   try {                    tit += "/" + regionsBundle.GetStringFromName(stringLangRegion[1]);                   }                   catch (ex) {          tit += "["+str+"]";                   }                 } //if region                 tit = tit + "  [" + str + "]";             } //if language             if (str && tit) {          availLanguageDict[i] = new Array(3);          availLanguageDict[i][0] = tit;          availLanguageDict[i][1] = str;          availLanguageDict[i][2] = visible;                i++;             } // if str&tit            //} //if visible      } //if accepted    } //while    availLanguageDict.sort( // sort on first element      function (a, b) {        if (a[0] < b[0]) return -1;        if (a[0] > b[0]) return  1;        return 0;    });}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/2d65205518dd78630410f6b14825016641cea695/pref-languages.js/clean/suite/common/pref/pref-languages.js