public IEnumerable <ILanguage> GetAvailableLanguages() { var languages = languagesCache.GetValue(host.CurrentSite.RootItemID, FindLanguagesRecursive); foreach (var language in languages) { yield return(persister.Get(language.ID) as ILanguage); } }
/// <summary>Gets available languages.</summary> /// <returns>An enumeration of available languages.</returns> public IEnumerable <ILanguage> GetAvailableLanguages() { var languages = languagesCache.GetValue(site.StartPageID, FindLanguagesRecursive); foreach (var language in languages) { yield return(persister.Get(language.ID) as ILanguage); } }
private LanguageInfo[] GetLanguageInfos() { return(languagesCache.GetValue(host.CurrentSite.RootItemID, FindLanguagesRecursive)); }