Question

I am working on an enterprise application that supports multiple languages using satellite assemblies, and we want to provide the customer with the ability to add new languages after deployment.

Is there away to force the application to generate .resources files instead of satellite assemblies? or maybe a way to extract resources files from satellite assemblies?

Is there another way that the customer can use to translate satellite assemblies without recompilation?

Was it helpful?

Solution

I extended ResourceManager and replace the ResourceManager by the extended one, then added a pre build script to replace the ResourceManager to my own ResourceManager (Because of the auto-generation of designer).

The extended ResourceManager reads from a custom Resource file that contains all the captions in the system and reads the required Resource file based on the UI language.

In this way at runtime the extended ResourceManager will load all UI captions with the captions from the translated Resource file.

The Resource file contains all the resources in all resx files.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top