Setting the culture and uiCulture in Web.config with NAnt
Here's the recipe for setting the culture and uiCulture in Web.config with NAnt:
<xmlpoke file="path/to/the/en-US/Web.config" xpath="/configuration/system.web/globalization/@culture" value="en-US"/> <xmlpoke file="path/to/the/en-US/Web.config" xpath="/configuration/system.web/globalization/@uiCulture" value="en-US"/>
When we perform mock-localization, we make a copy of the base culture directory (which contains culture-specific Web.config, aspx, ascx, image, and stylesheet files), mock-translate the resource files into the target language and build satellite assemblies for that culture, and then set the culture and uiCulture in the copy of Web.config for that culture appropriately.
09:06 PM | Colin

TrackBacks
Comments
# RE: Setting the culture and uiCulture in Web.config with NAnt
Wow.
Are you nerdier than when I saw you last? Or did you just used to hide it better? ;-)
10:17 PM | Evan
# RE: Setting the culture and uiCulture in Web.config with NAnt
Nerdier.
10:25 PM | Colin
# RE: Setting the culture and uiCulture in Web.config with NAnt
Really helped a lot
Thanks
05:29 AM | Kumaresan