Configure Visual Studio to show error messages in English

Visual Studio-2008Localization

Visual 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).

source: https://blogs.msdn.microsoft.com/benjaminperkins/2013/03/01/creating-custom-language-specific-error-pages-in-iis/

Solution 9 - Visual Studio-2008

For Visual Studio new generations:

  1. Go to Visual Studio Installer
  2. Select Modify
  3. Language Packages (can be other text, but you will understand)
  4. Select English or your prefered language to add
  5. Install the languages.

Open / Restart Visual Studio

Then:

  1. Go to Visual Studio Installer
  2. Go to Tools / Options
  3. Search for "International Settings" in your language:

enter image description here

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionHansView Question on Stackoverflow
Solution 1 - Visual Studio-2008user32083View Answer on Stackoverflow
Solution 2 - Visual Studio-2008PeuczynskiView Answer on Stackoverflow
Solution 3 - Visual Studio-2008Martin HarrisView Answer on Stackoverflow
Solution 4 - Visual Studio-2008HefassView Answer on Stackoverflow
Solution 5 - Visual Studio-2008T MView Answer on Stackoverflow
Solution 6 - Visual Studio-2008flyggeView Answer on Stackoverflow
Solution 7 - Visual Studio-2008Luis Veliz View Answer on Stackoverflow
Solution 8 - Visual Studio-2008andyView Answer on Stackoverflow
Solution 9 - Visual Studio-2008Leandro BardelliView Answer on Stackoverflow
Solution 10 - Visual Studio-2008MOHAMEDView Answer on Stackoverflow