Skip to content

Commit 96cdaff

Browse files
committed
Fixed minor localization issues with Telerik components
1 parent 10c6c14 commit 96cdaff

3 files changed

Lines changed: 0 additions & 31 deletions

File tree

src/Plugins/Shipping.FixedRateShipping/Controllers/ShippingFixedRateController.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,6 @@ public ShippingFixedRateController(IShippingService shippingServicee, ISettingSe
2323
this._shippingService = shippingServicee;
2424
this._settingService = settingService;
2525
}
26-
27-
protected override void Initialize(System.Web.Routing.RequestContext requestContext)
28-
{
29-
//little hack here
30-
//always set culture to 'en-US' (Telerik Grid has a bug related to editing decimal values in other cultures). Like currently it's done for admin area in Global.asax.cs
31-
var culture = new CultureInfo("en-US");
32-
Thread.CurrentThread.CurrentCulture = culture;
33-
Thread.CurrentThread.CurrentUICulture = culture;
34-
35-
base.Initialize(requestContext);
36-
}
3726

3827
public ActionResult Configure()
3928
{

src/Plugins/Tax.CountryStateZip/Controllers/TaxCountryStateZipController.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,7 @@ public TaxCountryStateZipController(ITaxCategoryService taxCategoryService,
3131
this._taxRateService = taxRateService;
3232
}
3333

34-
protected override void Initialize(System.Web.Routing.RequestContext requestContext)
35-
{
36-
//little hack here
37-
//always set culture to 'en-US' (Telerik Grid has a bug related to editing decimal values in other cultures). Like currently it's done for admin area in Global.asax.cs
38-
var culture = new CultureInfo("en-US");
39-
Thread.CurrentThread.CurrentCulture = culture;
40-
Thread.CurrentThread.CurrentUICulture = culture;
4134

42-
base.Initialize(requestContext);
43-
}
4435
public ActionResult Configure()
4536
{
4637
var taxCategories = _taxCategoryService.GetAllTaxCategories();

src/Plugins/Tax.FixedRate/Controllers/TaxFixedRateController.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,6 @@ public TaxFixedRateController(ITaxCategoryService taxCategoryService, ISettingSe
2424
this._settingService = settingService;
2525
}
2626

27-
protected override void Initialize(System.Web.Routing.RequestContext requestContext)
28-
{
29-
//little hack here
30-
//always set culture to 'en-US' (Telerik Grid has a bug related to editing decimal values in other cultures). Like currently it's done for admin area in Global.asax.cs
31-
var culture = new CultureInfo("en-US");
32-
Thread.CurrentThread.CurrentCulture = culture;
33-
Thread.CurrentThread.CurrentUICulture = culture;
34-
35-
base.Initialize(requestContext);
36-
}
37-
3827
public ActionResult Configure()
3928
{
4029
var taxCategories = _taxCategoryService.GetAllTaxCategories();

0 commit comments

Comments
 (0)