Werner Clausen

Hi,

Suppose I do a Xml validation using .NET functionality. If an error occurs it is delivered in English. Where can I - in code - see the setting that defines this langauge Or even better - is there any way to change the language of exceptions in code

Thanks,

--
Werner.



Re: .NET Base Class Library Detect or change framework language?

MS Johan Stenberg

Have you tried setting Thread.CurrentThread.CurrentCulture

Best regards,
Johan Stenberg






Re: .NET Base Class Library Detect or change framework language?

nobugz

You'll need to download and install the .NET framework language pack too.





Re: .NET Base Class Library Detect or change framework language?

Werner Clausen

Hi,

Yes, that returns the same as

System.Globalization.CultureInfo.CurrentCulture

Which is the culture of the selected regional setting in windows and not the framework i18n. But thanks for your suggestion.

regards

--
Werner





Re: .NET Base Class Library Detect or change framework language?

JocularJoe

> Have you tried setting Thread.CurrentThread.CurrentCulture

Should be Thread.CurrentThread.CurrentUICulture





Re: .NET Base Class Library Detect or change framework language?

Werner Clausen

Hi all,

The language packs did the trick. This solved all issues.
Thanks all!

regards,

--
Werner