Using Localized Resources with Enterprise Library 3 Validation
page 4 of 9
by Brian Mains
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 37338/ 62

Understanding Assembly Resources

Built into Visual Studio 2005, this tool has the capability to generate localized assemblies automatically.  For our resource files, the default resource is ValidationResources.resx, with each culture defined as a file in the format of ValidationResources.fr.resx (resources in French) or ValidationResources.it.resx (resources in Italian).  These resource files get compiled into a DLL and placed into a language-specific folder in the bin folder.  So, for the Italian resources, there would be a folder \bin\it, with a ValidationResources.resources.dll file in it.

Each of the validation classes use these resource strings and whenever the current culture changes, so does the resource file used for that culture.  This makes it especially useful to target multiple audiences.  In addition, it is possible to create satellite assemblies by creating a separate assembly for each culture that you want to implement in, which is a more advanced topic that we won't discuss in this article.


View Entire Article

User Comments

Title: Great Help   
Name: Tarun
Date: 2007-04-26 6:04:28 AM
Comment:
well its really a good help regarding the Enterprise Library 3.0.

I want to same thing for Exception Application block in which i have to localized the exception messages.

Can any one please help me about it.

Thanks.

Regards
Tarun

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-05-02 2:45:45 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search