Thursday, April 16, 2015

CurrentCulture vs CurrentUICulture

They are both properties of a Thread object, which you can access via Thread.CurrentThread.

  • CurrentCulture – Tells you the user’s current locale, as set in the Region applet.  i.e. Where is the user located? The CurrentCulture is used for Dates, Currency, etc.

image

  • CurrentUICulture – Tells you the native language of the version of Windows that is installed.  i.e. What language does the user speak?

image

    The user normally can’t change CurrentUICulture without re-installing Windows. It’s used to know what language to use when displaying text in your application.  (i.e. Which resource files to load).

    To get the default values set the following in the Web.Config.






    Technorati Tags: ,,

    No comments:

    Post a Comment