Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to change .net error message language to english

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?

like image 591
aldebaran Avatar asked Nov 15 '13 15:11

aldebaran


1 Answers

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!

like image 61
Lave Loos Avatar answered Oct 16 '22 01:10

Lave Loos