Quantcast
Channel: Fluent Validation for .NET
Viewing all articles
Browse latest Browse all 1917

New Post: Set language to German

$
0
0
Hi

FluentValidation uses the standard .net mechanism for localization using resource files and resource types.

The default language is set based on the thread's CurrentUICulture property. This is automatically set based on the culture information of the user under which the app is running. This property can be set to whatever culture you like:

System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("de-DE");

If you're unfamiliar with how localization works on .net I'd suggest reading up about it on msdn. Here's an article you might find useful (it's quite old but still useful) http://msdn.microsoft.com/en-us/library/ff647353.aspx

Jeremy Skinner
Sent from my iPhone

On 11 Sep 2012, at 11:09, GermanUser2 <notifications@codeplex.com> wrote:

From: GermanUser2

This is a basic issue. I would like the default messages to be German. How do you configure this? The documentation says that FluentValidation supports German out of the box. But it does not say how to set the language?! There is no example for setting the language to one that is supported out of the box.


Viewing all articles
Browse latest Browse all 1917

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>