How do I change the language of the Microsoft C# compiler's error messages?
Asked Answered
D

3

6

Their Russian translation is invalid and confusing. E.g. in some messages language keywords were translated. So I want to see the original versions (in #develop, LINQPad, ASP.NET errors etc).

UPDATE This great site helps find original English error messages by their translations: FindErr.NET

Democritus answered 4/11, 2010 at 11:38 Comment(9)
possible duplicate of How to change Visual Studio exception message language to English while debugging or Prevent exception messages from being translated into the user's language?Ursula
Read it through carefully. My question has nothing to do with exceptions.Democritus
Yes, maybe, but the accepted answers seem suspiciously related to your problem.Ursula
Yes, they are related, and nothing more.Democritus
So you already tried all suggested solutions and none was working? In what tool do you get these error messages? Also in Visual Studio? What compiler is being used? Looks like you might be using the Mono compiler.Ursula
Suggested solutions are all about exceptions, not compiler messages. I use the Microsoft C# 3 compiler. I have compiler messages in Russian everywhere: in SharpDevelop, LINQPad, ASP.NET etc. I've uninstalled .NET language pack, but it didn't help.Democritus
Change the system language for your machine. Control Panel + Region and Language.Gile
@Hans Passant: It doesn't help too. Seems like this settings (I have Windows XP) influence only date, time and money format.Democritus
If nothing can help you may try some brute force. See #22529964Disagreeable
G
4

Look in the c:\windows\microsoft.net\framework\v2.0.50727 folder. There should be one or more numbered subdirectories that contains cscompui.dll, the resource file for the C# compiler. The number is what matters, 1033 is the language id (LCID) for en-US.

Installing the language pack for the .NET framework should fix your problem. The download for 3.5 SP1 is here, change the Language to get the right one. The link I gave you ought to be good for English. If you get a readme.htm then switch the machine back to Russian before you try again.

Gile answered 4/11, 2010 at 13:38 Comment(2)
I've discovered that I haven't uninstalled the Russian language pack for .NET 3.5. Unlike language packs for other .NET versions it was named in Russian in the Add/Remove programs dialog, so I didn't notice it before.Democritus
I've discovered that the language pack was installed by the presence of the numbered subdirectory 1049 in framework\v3.5, so thank you for your tip.Democritus
K
4

Solved !

No coding ! Go to : Start > Configuration Pannel > Language and region > Administration > Languages for non unicode programs > Set it to english.

It changed error messages language for ASP .Net application that appear in browser. Using Windows 7.

Kilmer answered 30/3, 2012 at 8:54 Comment(1)
Didn't work for me. Maybe because my Windows does not support .ultilanguage.Aisne
A
0

For windows 10 Users, you can simple change the language of your system in Settings -> Time & Language -> Language -> APP & websites. (You need the desired language packed installed)

Note that this solution may interfere with other apps, but It was the only solution that worked for me.

Aeropause answered 14/12, 2022 at 13:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.