Last post Sep 24, 2008 06:49 AM by pawel.krakowiak
Sep 23, 2008 11:04 AM|pawel.krakowiak|LINK
I know that I have to use the
CultureAndRegionInfoBuilder class to create a custom culture, this is good for desktop applications which have an installer. What if I need a custom culture accessible from the whole web application? Is there a way to use it without registering it in the
system? I thought about creating it on application start and storing in the Application object, but that's just the first idea I got without too much thinking. Any suggestions?
Sep 23, 2008 11:49 AM|shados|LINK
Sep 24, 2008 01:45 AM|pawel.krakowiak|LINK
The web server usually does not (and should not!) have the kind of permissions required to make a custom culture.
And that's where I come from...
Just make a PowerShell script that creates the culture and run that once, problem solved
Thanks for the PowerShell hint, I need to look at it finally. But really, do you think the culture could be instantiated each time the application starts? So that it does not have to be registered with the server?
Sep 24, 2008 06:49 AM|pawel.krakowiak|LINK
OK, gotta answer myself. :) This is what I was looking for:
I needed to set the currency and digit point symbol and the date format, I just did not know it was possible to tweak the current thread's CultureInfo on the fly like that. [:$] So, after all I don't really need a custom culture. I might still store a modified