Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • mzufferey 4 posts 24 karma points
    Aug 06, 2010 @ 15:58
    mzufferey
    0

    Get/Set the CultureInfo

    Hi,

    Is there any way to change the CultureInfo of the website ?

    I know it's possible to get it using "Thread.CurrentThread.CurrentCulture", but how to change it ?

    Many thanks in advance for your answer.

  • Ismail Mayat 4511 posts 10059 karma points MVP 2x admin c-trib
    Aug 06, 2010 @ 16:05
    Ismail Mayat
    0

    You can set it in the web.config http://msdn.microsoft.com/en-us/library/bz9tc508.aspx

    Regards

    Ismail

  • Darren Ferguson 1022 posts 3258 karma points MVP c-trib
    Aug 06, 2010 @ 16:07
    Darren Ferguson
    0

    In Umbraco I believe the culture is tied to the domain. Right click on a node and then Manage hostnames.

    When you choose a domain for a node you can associate a language. This is linked to the lanuages in Settings -> language.

    Umbraco should set the culture based on this.

     

     

  • Sascha Wolter 615 posts 1101 karma points
    Aug 06, 2010 @ 16:10
    Sascha Wolter
    0

    Check this out: http://our.umbraco.org/forum/developers/extending-umbraco/11378-Usercontrol-localization (and the link at the bottom of the post)

    Trying to set the culture manually in a .Net user control doesn't seem to work so well because Umbraco has it's own mechanism to set the culture based on the domain as Darren said above.

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Aug 06, 2010 @ 16:19
  • mzufferey 4 posts 24 karma points
    Aug 11, 2010 @ 07:11
    mzufferey
    0

    Thanks to all of you for the differents posts.

    The way I was looking for is the purposal of kipusoep.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies