Click here to Skip to main content
15,564,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When i change the system current culture and region to German and use code as it still shows en-US .

CultureInfo currentUserCulture = Thread.CurrentThread.CurrentCulture;
     RegionInfo region = new RegionInfo(currentUserCulture.Name);

How to fix this issue.

I changed the system settings from control panel current culture and region to German.

What I have tried:

<pre>CultureInfo currentUserCulture = Thread.CurrentThread.CurrentCulture;
     RegionInfo region = new RegionInfo(currentUserCulture.Name);
Posted
Updated 5-Aug-17 22:39pm

1 solution

Try this:
C#
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.CreateSpecificCulture("en-GB");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900