Example #1
0
 public AboutController(IStringLocalizer <SharedResource> localizer, IStringLocalizer <AboutController> aboutLocalizerizer, IStringExtendedLocalizerFactory stringExtendedLocalizerFactory, LocalizationModelContext context)
 {
     _localizer                      = localizer;
     _aboutLocalizerizer             = aboutLocalizerizer;
     _stringExtendedLocalizerFactory = stringExtendedLocalizerFactory;
     _context = context;
 }
 public ProductRequestProvider(IStringExtendedLocalizerFactory stringLocalizerFactory,
                               ProductContext productContext)
 {
     _stringLocalizerFactory = stringLocalizerFactory;
     _stringLocalizer        = _stringLocalizerFactory.Create(typeof(ShopResource));
     _productContext         = productContext;
 }
 public ProductCudProvider(ProductContext productContext,
                           LocalizationModelContext localizationModelContext,
                           IStringExtendedLocalizerFactory stringLocalizerFactory)
 {
     _productContext           = productContext;
     _localizationModelContext = localizationModelContext;
     _stringLocalizerFactory   = stringLocalizerFactory;
 }
Example #4
0
 public LocalizationRepository(IOptions <SqlContextOptions> sqlContextOption, IStringExtendedLocalizerFactory sqlLocalizerFactory,
                               LocalizationModelContext localizationContext, IJsonManagerRepository jsonManagerRepository)
 {
     _SqlContextOption      = sqlContextOption;
     _SqlLocalizerFactory   = sqlLocalizerFactory;
     _LocalizationContext   = localizationContext;
     _JsonManagerRepository = jsonManagerRepository;
 }
 public DataSeeder(LocalizationModelContext ltx, IStringExtendedLocalizerFactory stringExtendedLocalizerFactory)
 {
     _ltx = ltx;
     _stringExtendedLocalizerFactory = stringExtendedLocalizerFactory;
     location  = System.Reflection.Assembly.GetEntryAssembly().Location;
     directory = System.IO.Path.GetDirectoryName(location);
     filepath  = directory + "\\Data\\";
 }
 public LocalizationDataInitializer(LocalizationModelContext ctx, IStringExtendedLocalizerFactory localizer)
 {
     this.context   = ctx;
     this.localizer = localizer;
 }
 //private readonly RazorViewToStringRenderer _razorViewToStringRenderer;
 public LocalizationController(LocalizationModelContext context, IStringExtendedLocalizerFactory stringExtendedLocalizerFactory /*, RazorViewToStringRenderer razorViewToStringRenderer*/)
 {
     _context = context;
     _stringExtendedLocalizerFactory = stringExtendedLocalizerFactory;
     //_razorViewToStringRenderer = razorViewToStringRenderer;
 }
 public AboutController(IStringLocalizer<SharedResource> localizer, IStringLocalizer<AboutController> aboutLocalizerizer, IStringExtendedLocalizerFactory stringExtendedLocalizerFactory)
 {
     _localizer = localizer;
     _aboutLocalizerizer = aboutLocalizerizer;
     _stringExtendedLocalizerFactory = stringExtendedLocalizerFactory;
 }
 public ImportExportController(IStringExtendedLocalizerFactory stringExtendedLocalizerFactory)
 {
     _stringExtendedLocalizerFactory = stringExtendedLocalizerFactory;
 }
Example #10
0
 public GreetingController(IStringLocalizer <SharedResource> localizer, IStringLocalizer <GreetingController> greetLocalizerizer, IStringExtendedLocalizerFactory stringExtendedLocalizerFactor)
 {
     _localizer                      = localizer;
     _greetLocalizerizer             = greetLocalizerizer;
     _stringExtendedLocalizerFactory = stringExtendedLocalizerFactor;
 }
Example #11
0
 public AboutController(IStringLocalizer <SharedResource> localizer, IStringLocalizer <AboutController> aboutLocalizerizer, IStringExtendedLocalizerFactory stringExtendedLocalizerFactory)
 {
     _localizer                      = localizer;
     _aboutLocalizerizer             = aboutLocalizerizer;
     _stringExtendedLocalizerFactory = stringExtendedLocalizerFactory;
 }
Example #12
0
 public HomeController(IStringLocalizer <HomeController> stringLocalizer, ILogger <HomeController> logger, IStringExtendedLocalizerFactory stringLocalizerFactory)
 {
     _stringLocalizer        = stringLocalizer;
     _logger                 = logger;
     _stringLocalizerFactory = stringLocalizerFactory;
 }
 public ImportExportController(IStringExtendedLocalizerFactory stringExtendedLocalizerFactory)
 {
     _stringExtendedLocalizerFactory = stringExtendedLocalizerFactory;
 }