public void LookupLanguages() { _ctlLngList.Items.Clear(); foreach (string iFile in Directory.GetFiles(RsViewEngine.ProfileManager.LocalePath)) { if (CLocalization.IsLocale(iFile)) { _ctlLngList.Items.Add(CLocalization.GetLocaleInfo(iFile)); } } }
public List <CLocaleInfo> LookupLanguages() { List <CLocaleInfo> lResult = new List <CLocaleInfo>(); foreach (string iFile in Directory.GetFiles(LocalePath)) { if (CLocalization.IsLocale(iFile)) { lResult.Add(CLocalization.GetLocaleInfo(iFile)); } } return(lResult); }