I am developing an application that is localized, has a multilingual interface. To do this, I use the local winform capabilities, as well as language string resources. So far so good, it works great.
The problem occurs when I need to try to get a localized string inside the background workflow: it cannot use the current UI culture, but it is used by default instead. The ResourceManager GetString method returns the default language string, not the CurrentUICulture string. Please note that it works fine in the main thread, the problem is in the background.
So, how can I get my localized strings - based on the current ui culture - from language resource files in a background workflow thread?
Environment: .net4, C #, Visual Studio 2010.
Thanks in advance!
source share