locked
Changing the current language based on LCID RRS feed

  • Question

  • I'm creating a Silverlight-based CRM 2011 control, and I would like the control to use the same language as the user's CRM setting.

    The control, by default, will use the client's system culture settings. This isn't strictly bad, but since the user can change the CRM language (and by doing so, it'll be different from the systems culture settings), it will create a contrast in which my control is displayed in a different language.

    I could change the System.Threading.Thread.CurrentThread parameters to do this...

    But, here is where I've got a problem. In Silverlight 4 I can only create a CultureInfo based on it's short name. The only thing I can read from the CRM is the LCID, and there doesn't seem to be a way to convert an LCID to a CultureInfo in SL4!

    I find it strange that this functionality was left out of SL, when it's available in .NET.

    Is there a workaround for this issue?

    Friday, November 4, 2011 9:52 AM

Answers