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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top