rem:  try { 
add:  try { 
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.getKey();        stringNameProperty = stringName.split('.');       if (stringNameProperty[1] == 'accept') {          //dump the UI string (value)            visible   = curItem.getValue();           //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();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0b2dd2b2d2fd037df917e07645fa019a963332a5/pref-languages.js/buggy/xpfe/components/prefwindow/resources/content/pref-languages.js