Globalization component
First Claim
1. A method of decoupling resource files from an assembly, comprising:
- providing an assembly that is executable by a computer, the assembly including forms having associated resources, the forms being defined by a form class, the resources being managed by a resource manager class; and
defining a resource manager class that;
obtains culture information indicating a human language of an operating system running on the computer,reads, by the computer, resource folder information from a registry external to the assembly, the resource folder information indicating a location of at least one resource file, andsearches, by the computer, the resource folder for a culture-specific resource file having a filename based on the culture information.
1 Assignment
0 Petitions
Accused Products
Abstract
A globalization component including a base class NewResourceManager that provides a layer of abstraction from the Microsoft Resource Manager and a new WinForm class that inherits from the .NET Windows Form and utilizes NewResourceManager. The globalization component uses culture information and resource folder information from the registry to set a culture-specific resource folder and file. Decoupled assembly culture-specific resource files include all string resources in the target language and can be stored in any folder. New culture-specific resource files are easily generated without having to recompile the assembly or any satellite assemblies and without having to modify any configuration files. The NewWinForm class can also iterate through all controls on the form and if values are missing from an associated resource file, the resource manager will save the missing controls to a text file. Translators need only receive this text file to translate from one human language to another.
-
Citations
18 Claims
-
1. A method of decoupling resource files from an assembly, comprising:
-
providing an assembly that is executable by a computer, the assembly including forms having associated resources, the forms being defined by a form class, the resources being managed by a resource manager class; and defining a resource manager class that; obtains culture information indicating a human language of an operating system running on the computer, reads, by the computer, resource folder information from a registry external to the assembly, the resource folder information indicating a location of at least one resource file, and searches, by the computer, the resource folder for a culture-specific resource file having a filename based on the culture information. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18)
-
Specification