Configure Visual Studio to show error messages in English
Visual Studio-2008LocalizationVisual Studio-2008 Problem Overview
I'm currently working in another country, and my PC has a non-English version of Windows installed. I don't care about this, but I do care a lot when Visual Studio shows error messages because they are also localized to the same language as Windows.
Sometimes I spend a good time trying to find what it means, which is pretty boring...
Is there any way to configure Windows or Visual Studio to display the messages in English?
Visual Studio-2008 Solutions
Solution 1 - Visual Studio-2008
Deinstall the .NET Framework xxx Language Pack. (xxx = boring message language)
Solution 2 - Visual Studio-2008
The best way would be to use this code in your application entry method
if (Debugger.IsAttached)
CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.GetCultureInfo("en-US");
It will force english messages not only in exceptions caught and displayed in the application but inside the IDE as well
Because you cannot force your users to use english language versions of Windows when performing some initial tests on premises you may have find this useful.
Solution 3 - Visual Studio-2008
Under Tools/Options/International settings. I have an option to change the language from "Same as Microsoft Windows" to "English" (Visual Studio 2008 in case it makes any difference). If you don't have English in there then I'm not sure how you add more languages...
Edited to add:
Since you are talking about application exceptions you need to change the culture of the application you are dubugging, you can do that by following this or if it isn't an option to change the culture for the whole app this question has some ideas for only changing culture when exceptions are thrown.
Solution 4 - Visual Studio-2008
As I posted in another thread, in my case it took only one line of code to change the Culture:
System.Globalization.CultureInfo.DefaultThreadCurrentUICulture=System.Globalization.CultureInfo.GetCultureInfo("en-US");
It changes default Culture of Main thread and new ones as well.
Solution 5 - Visual Studio-2008
In my case in Windows 10 it was as simple as going to Language Settings in Windows and changing the windows display language.
I could have tried changing the DefaultThreadCurrentUICulture as described above in code but i feel this is wrong for multilanguage apps and really exception messages should stay in english so someone can google them and get help.
Solution 6 - Visual Studio-2008
I didn't have any .NET Framework Language Packs installed. I think the problem was that the IIS was not in English due to the whole system wasn't in English.
I installed Windows English Language Pack and changed the OS-Language to English. Now everything's fine.
If you're on Windows 7 Professional, this may help you.
Solution 7 - Visual Studio-2008
As Martin Harris sugested above, at the beginning the Options window didn't have the English language for me, so I had to install it trought the Visual Studio Installer2. After that, yo should be able to see the Options window with the english option enabled1, and you can finally choose it.
Best Regards.
Solution 8 - Visual Studio-2008
I didn't have any language packs in Visual Studio / Windows installed other than English.
Still my application in IIS Manager > .NET Globalization > (UI) Culture showed another language than English.
Running lpksetup
in a cmd-window I was able to uninstall the language pack (Dutch in my case).
Solution 9 - Visual Studio-2008
For Visual Studio new generations:
- Go to
Visual Studio Installer
- Select
Modify
- Language Packages (can be other text, but you will understand)
- Select
English
or your prefered language to add - Install the languages.
Open / Restart Visual Studio
Then:
- Go to
Visual Studio Installer
- Go to
Tools
/Options
- Search for
"International Settings"
in your language:
Select
the language you want and Restart
Visual Studio.
Solution 10 - Visual Studio-2008
1 . Deinstall the .net framework 2. go to preferences languages => region and languages => change language to your language that u want (windows 10)
- this method its work for me