I'm developing a user control and now (quite at the end of the work) I'm facing the problem of making it multi-language. I think I could proceed in this way:
Localizable = true
on control and let VS generates all "records" I need for default language. So using code from MSDN
Assembly myAssembly = this.GetType().Assembly;
ResourceManager mgr = new ResourceManager("namespace.resource", myAssembly);
mgr.GetString(...)
my job could (easily) be done.
But I have some question:
new ResourceManager(...)
because of main namespace changes in target app? Thanks to everybody
I answer some question after some research:
Thanks again
Take a look Best practice to make a multi language application in C#/WinForms?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.