Last post Sep 15, 2006 01:52 PM by Ryoushin
Sep 15, 2006 11:17 AM|shapper|LINK
Sep 15, 2006 11:47 AM|Ryoushin|LINK
<globalization culture="it-IT" uiCulture="it-IT" />
in your system.web zone.
I would suggest a base-page-class (to be inherited by every page in you app) where an overridden version of subroutine InitializeCulture has to be put. There you'll code the logic to retrieve and set the appropriate culture. Thread.CurrentThread.CurrentUICulture =
new System.Globalization.CultureInfo("de-DE"); To preserve infos about user preferences you can:
save them in a cookie
if the user is profiled then save them in your database.
For translating questions I think you'll find plethora of articles and how-to's (but I think this isn't your main problem)
Hope it helps.
Sep 15, 2006 12:43 PM|shapper|LINK
1. When I set the culture in web.config globalization doesn't that mean that it everytime he visits the web site he will have those values.
2. I created this profile:
<anonymousIdentification enabled="true" />
<add name="UserCulture" defaultValue="en-US" />
<add name="UserUICulture" defaultValue="en"/>
Then I just set the profile property UserCulture or UserUICulture.
It will be saved, right?
3. This one I got it.
Sep 15, 2006 01:52 PM|Ryoushin|LINK
Ok. Now I better understand your scenario...
<add name="UserCulture" defaultValue="en-US" allowAnonymous="true" />
have you read this msdn magazine article? maybe it matches your needs: