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

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 (resources in French) or (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
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.



Product Spotlight
Product Spotlight 

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

©Copyright 1998-2021  |  Page Processed at 2021-03-05 9:13:28 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search