2

I have a WPF application implemented with Gloablization feature.It uses satellite assembly to get localized resources.

I changed the Region and Language settings.System.Threading.CurrentThread.CurrentCulture is changed but CurrentUICulture is not set.

Do we have to install os language pack? Or Is there any other configuration settings?

Thanks

Manikandan
  • 673
  • 3
  • 12
  • 26
  • No you don't. But you can also set the `CurrentUICulture`. – DHN Jun 14 '13 at 13:40
  • Yeah i can set but i don't want to do that. If we change the Region and Language, implicitly thread's CurrentCulture is changed. Why it is not happening to CurrentUICulture. – Manikandan Jun 14 '13 at 13:56
  • Well I'm not sure, one reason might be, that the user wants to use the frontend in another culture, than his current region. Take me as example. I'm a German but I like to use my desktop and applications in English. – DHN Jun 14 '13 at 14:20
  • Ok Got it. Like region and language setting, is there any other OS configuration to change the UICulture too? UICulture should be set so that the wpf application would be able to get localized resource from satellite assembly. – Manikandan Jun 14 '13 at 14:39

1 Answers1

0

Well I guess the only solution is to set the Thread.Current.CurrentUICulture according to CultureInfo.InstalledUICulture in the e.g. Application.OnStartUp method. Pls have a look at this SO post and this MSDN doc.

I think the following should do the trick.

Thread.Current.CurrentUICulture = CultureInfo.InstalledUICulture;
Community
  • 1
  • 1
DHN
  • 4,807
  • 3
  • 31
  • 45