我正在开发一个使用附属程序集支持多种语言的企业应用程序,我们希望为客户提供在部署后添加新语言的能力。
是否有办法迫使应用程序生成.resources文件而不是附属程序集?或者也许是从卫星装配中提取资源文件的方法?
客户是否可以使用另一种方式转换附属程序集而无需重新编译?
答案 0 :(得分:0)
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.