Adding a resource file without recompiling

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm currently localizing a windows form to support several languages. Right now, the languages are in seperate .resx file
with their own .dll. Is there a way so that I can add a new .resx files without having to recompile the entire program
Sort of like, having a patch or update, but this time a new language will be added

Thanks
 
If you create separate satellite assemblies containing your language resources placed in subdirectories named after specific cultures, the ResourceManager will load the right resources based on the value of the property Thread.CurrentThread.CurrentUICulture. That way you can add new cultures by just adding a new satellite assembly without recompiling the main assemblies

Read more here: http://msdn.microsoft.com/library/d...uide/html/cpconcreatingsatelliteassemblies.as

I hope this helps you

Regards, Jakob.
 
Back
Top