I thought of three approaches to creating and maintaining resources in .Net projects for WinForms using Visual Studio 2008. (I am sure there must be more than three ways.) I need to solve one before starting to implement internationalization for our product.
- Each .net project has separate sets of resource files (resx) for each form of the window or part of the user interface (custom control). They are automatically generated by Visual Studio if the Localizable property is set to true in the form or control properties.
- Have one resource file for the .net project. This is added manually and updated manually using the lines and messages of the resource.
- There is one project resource manager that has resources for all components for a set of .net projects.
Personally, I do not like the first approach, since it creates many resource files. The only advantage we get in this approach is that we do not need to manually set the text in the user interface elements.
I like the second and third approach, because they are easy to maintain, and there is only one set of resources that you need to handle. Thus, duplication of lines and messages does not occur. Easy for translators.
What are your thoughts? Please share.
source
share