Hi,
I must set the language (read : culture and UICulture) of my asp.net projet to french, more specificly "fr-CA". I do not use a ressource file. This is only to force asp controls such as gridviews and login controls to be in french. I put the following code in my Global.asax page :
protected void Application_BeginRequest(object sender, EventArgs e)
{
System.Globalization.CultureInfo info = System.Globalization.CultureInfo.CreateSpecificCulture("fr-CA");
System.Threading.Thread.CurrentThread.CurrentCulture = info;
System.Threading.Thread.CurrentThread.CurrentUICulture = info;
}
However, it does not work on the server after publishing it. My development PC is already in french so the site is french when I try it locally but DOES change to english if I put "en-CA" instead. I have tried to add the localization tag in the web.config and I also tried to override the Page.InitializeCulture(). Exact same thing : works locally but not on server.