Created
August 9, 2014 12:03
-
-
Save timgaunt/0ed5555c460563d3f0fb to your computer and use it in GitHub Desktop.
Set culture in uCommerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Set for any request | |
System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US"); | |
// Set only if within Umbraco editor | |
if (Request.RawUrl.Contains("macroResultWrapper") || Request.RawUrl.Contains("GetMacroResultAsHtmlForEditor")) | |
{ | |
System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment