I have been trying to localize a WinForms application for a while. I have used the method that I set the form's Localizable property true, changed the Language and changed the control's Text properties.The problem is my app has multiple forms and I don't want to have a resource file for each form, I would like to localize the app with a common,single resource file. Should I merge these resource files or is there an other way to do this? Thanks for any help.
1 Answers
(Note: In the interest of full disclosure, I'm the developer of a 3rd-party localization program for Visual Studio). I've been down this avenue before and while I don't recall the details anymore (I'd have to dig them up again), it's unlikely you really want to do this. It's not trivial so whatever benefits you may derive will likely be outweighed by the drawbacks. It's just much more difficult to implement and maintain your program this way. If you want to do this because it's just easier than dealing with a bunch of ".resx" file for translation purposes (I agree, and MSFT's system for translating ".resx" files is extremely poor IMHO), you're better off using a 3rd-party translation tool (since Visual Studio offers you nothing better). I'm not suggesting that to promote my own product (which does move all strings into a single file for external translation), but because it is legitimately easier to stick with MSFT's native system (regardless of which 3rd-party tool you choose to use).
Label
s) . But you are always free to implement own localization manager, which will not work with designer . Why multiple resx-files per form are problem? Is your actual problem related to presense of satellite assemblies (multiple folders and dlls inside near exe-file)? – Sinatr