public List <Language> getLanguages(IChoiceProvider provider, OGLContext context) { List <Language> res = new List <Language>(); int offset = provider.GetChoiceOffset(this, UniqueID, Amount); for (int c = 0; c < Amount; c++) { String counter = ""; if (c + offset > 0) { counter = "_" + (c + offset).ToString(); } Choice cho = provider.GetChoice(UniqueID + counter); if (cho != null && cho.Value != "") { res.Add(context.GetLanguage(cho.Value, Source)); } } return(res); }