|
|
|
|
|
|
File Name:
|
Custom ResourceReader
|
|
File Size:
|
144,262 bytes
|
|
Downloaded:
|
8615 times
|
|
Posted by
CNagel
on
Sunday, July 06, 2003 (EST)
|
|
Click here to download this file
|
A sample implemenation of a custom ResourceReader to read resource information from the database instead of using resource files or satellite assemblies.
The second project implements a custom CultureInfo (EnterpriseCultureInfo) to make localization to Klingon and Vulcano possible.
|
|
|
1. install the sample database TechEdDemo in SQL Server.
This database only has a single table Messages with a single column for every localization.
2. the project Nagel.Demos.ResourceReader includes a library with three classes to read resources from the database:
- DBResourceReader
This class reads localized resources from the database, and stores the results in a Hashtable.
- DBResourceSet
Includes a localized resource; uses DBResourceReader to read resources.
- DBResourceManager
Manages multiple localizations. Stores multiple DBResourceSets in a Hashtable.
3. the project Nagel.Demos.Enterprise includes the class EnterpriseCultureInfo. EnterpriseCultureInfo derives from CultureInfo to make translations to Klingon and Vulcano possible.
|
|
|
Most Popular Articles
There are no articles
|
|
|
|
|
|
|
|
Most Popular Links
Microsoft Regional Director
Microsoft Regional Directors are independent developers and architects, volunteers chosen for their leadership in their local technology circles.
Global Knowledge
Courses for .NET Programming, Microsoft System Admin, Cisco, Unix...
INETA
International .NET Association - User Group of User Groups
|
|
|