I am using VS2012, .net 4.5 and Win7 Professional. Win7 is Turkish and now I am getting error messages in Turkish! In Win7 Professional it is not possible to install/uninstall language pack. Is it possible to change the error message language without reinstalling VS or .net pack?
1 Answer
This worked for me:
Start > Configuration Panel > Language and region > Administration
In the tab "Languages for non unicode programs", choose English.
You also have the option to set the CultureInfo in the part of code where you are debugging / logging. Just play a bit with Globalization settings, something like:
System.Threading.Thread.CurrentUICulture = new System.Globalization.CultureInfo("en-US");
or
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-us");
Goodluck!
-
I tried both solution, unfortunately no change. I should say that the error messages caused by SQL Server 2012 are in Turkish but the other ones, for example "Index out of range", are in English. I set SSMS to English with "SET LANGUAGE English" command and now in management studio I get errors in English. However inside vs2012 they appear in Turkish. I could not get the point. Nov 18, 2013 at 8:40
-
The first solution you offer makes .net originated error messages English. For sql server originated errors, i changed the default language of db user. Whole solution is this. Thank you very much. Nov 19, 2013 at 9:37
-
Glad it worked, had been struggling with it myself a while back. Happy coding! Nov 19, 2013 at 10:52