开发者

Change resource file on the fly

开发者 https://www.devze.com 2022-12-23 02:13 出处:网络
I woulld like to localize my WPF application with resource files开发者_如何学Python. It good technics. But I have requirement to give ability to end user to change some localization information (for e

I woulld like to localize my WPF application with resource files开发者_如何学Python. It good technics. But I have requirement to give ability to end user to change some localization information (for example some word traslation). It means change information in the resourse files on the fly (in run time). Is it possible ?


This would involve recompiling the resources on the fly; and reloading them will be quite difficult (as DLLs cannot be unloaded without unloading an AppDomain).

In such a configuration, you're better off using the database to store your translations.

0

精彩评论

暂无评论...
验证码 换一张
取 消