Ejemplo n.º 1
0
 public HomeController(ITeeyootFaqService faqService, ILanguageService languageService)
 {
     _languageService = languageService;
     _faqService = faqService;
     T = NullLocalizer.Instance;
     Logger = NullLogger.Instance;
 }
Ejemplo n.º 2
0
        public FaqEntryPartDriver(ILanguageService languageService, ITeeyootFaqService faqService, IContentManager contentManager, ICultureManager cultureManager)
        {
            _languageService = languageService;
            _contentManager  = contentManager;
            _faqService      = faqService;
            _cultureManager  = cultureManager;

            T = NullLocalizer.Instance;
        }
Ejemplo n.º 3
0
        public HomeController(
            ITeeyootFaqService faqService,
            ILanguageService languageService,
            IWorkContextAccessor workContextAccessor)
        {
            _languageService     = languageService;
            _faqService          = faqService;
            _workContextAccessor = workContextAccessor;

            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;

            culture = _workContextAccessor.GetContext().CurrentCulture;
        }
Ejemplo n.º 4
0
        //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");
        }