Support for multiple language resources

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

Guest

Is there any way to switch cultures at run time in the CF 2.0? None of the
methods which work with the standard framework seem to work with the compact
version. Basically what I am trying to do is create multiple .resx files
such as "strings.en.resx" and "Strings.de.resx" and then access them with
ResourceMaganger.GetString("MyString", MyCultureInfo) calls.
 
Unfortunately CF1 and 2 does not support Thread.CurrentThread.CurrentCulture
so you can't force a culture as you would normally.

I have never tried this but have you tried something like the following:
ResourceManager rm = new ResourceManager("Resources.AppStrings.de",
Assembly.GetExecutingAssembly());

To force the load of the german culture.

Simon.
 
Back
Top