Loading WPF satellite resources dynamically

Posted by BJ on Stack Overflow See other posts from Stack Overflow or by BJ
Published on 2010-02-15T13:32:51Z Indexed on 2010/04/04 6:53 UTC
Read the original article Hit count: 741

Hello!

I've read about satellite-assemblies being used in WPF localizations. However, I would like to ask if there is a way to load the satellite-assemblies without following the pre-defined directory structure that depends on the language (ex. If the system language is English, the WPF application looks for the satellite-assembly inside the "en-US" subfolder).

This is because I would like to simply swap the satellite-assemblies when distributing the software package without having to create a specific folder per language that would hold the assemblies. I would just like to have the satellite-assembly and the main executable in the same directory.

Is this possible and is there even an easy way to do this like simply loading the resource file on application startup once?

Thanks!

© Stack Overflow or respective owner

Related posts about wpf

Related posts about localization