Copied to clipboard

Flag this post as spam?

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


  • nicolas ruiz 74 posts 95 karma points
    Jun 18, 2012 @ 22:23
    nicolas ruiz
    0

    Manually set CurrentCulture

    Hi there,

    How can I manually set the CurrentCulture during a inline Razor macro script execution ?

    Thanks,

    Nicolas.

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Jun 19, 2012 @ 23:38
    Dan Diplo
    100

    It's the same as you would in .NET ie.

    System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("es-ES");

    See http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx

     

  • 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