protected override string Language(IGigyaModuleSettings settings) { var languageHelper = new GigyaLanguageHelper(); var languageKey = CultureInfo.CurrentUICulture.Name.ToLowerInvariant(); var currentSite = SystemManager.CurrentContext.CurrentSite; var cultures = currentSite.PublicContentCultures; if (cultures != null && cultures.Length == 1 && !string.IsNullOrEmpty(currentSite.DefaultCulture)) { languageKey = currentSite.DefaultCulture.ToLowerInvariant(); } var culture = new CultureInfo(languageKey); return(languageHelper.Language(settings, culture)); }
protected override string Language(IGigyaModuleSettings settings) { var languageHelper = new GigyaLanguageHelper(); return(languageHelper.Language(settings, CultureInfo.CurrentUICulture)); }