We currently have globlization set up and are able to switch between multiple languages on our development box. However when we push the code to production it stays defaulted to en-US. I have verified all entries in the web-config are the same and database entries for setting the session variables are the same.
When I output my session variable to the page is it correct for the change language. But the
CurrentUICulture stay en-US
Are there any server permissions or other factors that would affect this?
Any help is appreciated.
<add name="CookieLocalizationModule" type="PDR.CookieLocalizationModule, PDR" />
<identity impersonate="true" />
<globalization uiCulture="auto" culture="auto" />
public void PreRequestHandlerExecute(object sender, EventArgs e)
string lang = null;
PDR.Models.Currency currency = null;
string currencyCulture = null;
lang = HttpContext.Current.Session["Language"].ToString();
currency = (PDR.Models.Currency)(HttpContext.Current.Session["Currency"]);
currencyCulture = currency.CurrencyCulture;
var culture = new System.Globalization.CultureInfo(lang);
var cculture = new System.Globalization.CultureInfo(currencyCulture);
Thread.CurrentThread.CurrentCulture = cculture;