public HomeController(ITeeyootFaqService faqService, ILanguageService languageService) { _languageService = languageService; _faqService = faqService; T = NullLocalizer.Instance; Logger = NullLogger.Instance; }
public FaqEntryPartDriver(ILanguageService languageService, ITeeyootFaqService faqService, IContentManager contentManager, ICultureManager cultureManager) { _languageService = languageService; _contentManager = contentManager; _faqService = faqService; _cultureManager = cultureManager; T = NullLocalizer.Instance; }
public HomeController( ITeeyootFaqService faqService, ILanguageService languageService, IWorkContextAccessor workContextAccessor) { _languageService = languageService; _faqService = faqService; _workContextAccessor = workContextAccessor; T = NullLocalizer.Instance; Logger = NullLogger.Instance; culture = _workContextAccessor.GetContext().CurrentCulture; }
//private readonly string cultureUsed = string.Empty; public FaqAdminController(IOrchardServices services, IShapeFactory shapeFactory, ITeeyootFaqService faqService, ISiteService siteService, IWorkContextAccessor workContextAccessor, ICultureManager cultureManager, ICountryCulturesProvider countryCulturesProvider) { _faqService = faqService; _siteService = siteService; Services = services; T = NullLocalizer.Instance; Logger = NullLogger.Instance; Shape = shapeFactory; _workContextAccessor = workContextAccessor; _cultureManager = cultureManager; _countryCulturesProvider = countryCulturesProvider; //var culture = _workContextAccessor.GetContext().CurrentCulture; //cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY"); }