Print Page | Close Window

Localization of validation errors

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3591
Printed Date: 13-May-2026 at 4:33am


Topic: Localization of validation errors
Posted By: redman
Subject: Localization of validation errors
Date Posted: 22-Aug-2012 at 3:00am
Hi

I have a question about localizing validation errors. I would like to localize validation errors based on user's culture (Silverlight application). How do you translate the server side errors so that client get error messages in it's language? I would like to translate generated validation errors (for those generated from database, like required) and those of custom verifiers.
Is there any sample or best practices on how to do this? 

Thanks for your help



Replies:
Posted By: sbelini
Date Posted: 22-Aug-2012 at 2:56pm
Hi redman,
 
You'll find an article about localization at http://drc.ideablade.com/xwiki/bin/view/Documentation/validate-localizing-error-messages - http://drc.ideablade.com/xwiki/bin/view/Documentation/validate-localizing-error-messages .
 
With regards to localization on the server, I'd suggest passing that information on IPrincipal, so the server would now the culture.
 
Regards,
   Silvio.



Print Page | Close Window