Reputation: 57593
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
Upvotes: 5
Views: 2898
Reputation: 2113
Take a look Best practice to make a multi language application in C#/WinForms?
Upvotes: 2