コード例 #1
0
        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);
            }
        }
コード例 #2
0
        /// <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);
            }
        }
コード例 #3
0
 private LanguageInfo[] GetLanguageInfos()
 {
     return(languagesCache.GetValue(host.CurrentSite.RootItemID, FindLanguagesRecursive));
 }