Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
Is there any way to change the CultureInfo of the website ?
I know it's possible to get it using "Thread.CurrentThread.CurrentCulture", but how to change it ?
Many thanks in advance for your answer.
You can set it in the web.config http://msdn.microsoft.com/en-us/library/bz9tc508.aspx
Regards
Ismail
In Umbraco I believe the culture is tied to the domain. Right click on a node and then Manage hostnames.
When you choose a domain for a node you can associate a language. This is linked to the lanuages in Settings -> language.
Umbraco should set the culture based on this.
Check this out: http://our.umbraco.org/forum/developers/extending-umbraco/11378-Usercontrol-localization (and the link at the bottom of the post)
Trying to set the culture manually in a .Net user control doesn't seem to work so well because Umbraco has it's own mechanism to set the culture based on the domain as Darren said above.
Also take a look at my topic: http://our.umbraco.org/forum/developers/api-questions/11342-Umbraco-overriding-SystemThreadingThreadCurrentThreadCurrentCulture
Thanks to all of you for the differents posts.
The way I was looking for is the purposal of kipusoep.
is working on a reply...
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.
Continue discussion
Get/Set the CultureInfo
Hi,
Is there any way to change the CultureInfo of the website ?
I know it's possible to get it using "Thread.CurrentThread.CurrentCulture", but how to change it ?
Many thanks in advance for your answer.
You can set it in the web.config http://msdn.microsoft.com/en-us/library/bz9tc508.aspx
Regards
Ismail
In Umbraco I believe the culture is tied to the domain. Right click on a node and then Manage hostnames.
When you choose a domain for a node you can associate a language. This is linked to the lanuages in Settings -> language.
Umbraco should set the culture based on this.
Check this out: http://our.umbraco.org/forum/developers/extending-umbraco/11378-Usercontrol-localization (and the link at the bottom of the post)
Trying to set the culture manually in a .Net user control doesn't seem to work so well because Umbraco has it's own mechanism to set the culture based on the domain as Darren said above.
Also take a look at my topic: http://our.umbraco.org/forum/developers/api-questions/11342-Umbraco-overriding-SystemThreadingThreadCurrentThreadCurrentCulture
Thanks to all of you for the differents posts.
The way I was looking for is the purposal of kipusoep.
is working on a reply...
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.