<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: ASP.NET MVC and Localization</title>
	<atom:link href="http://helios.ca/2009/05/27/aspnet-mvc-and-localization/feed/" rel="self" type="application/rss+xml" />
	<link>http://helios.ca/2009/05/27/aspnet-mvc-and-localization/</link>
	<description>Just another developer blog</description>
	<lastBuildDate>Mon, 23 Aug 2010 13:24:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Alfred</title>
		<link>http://helios.ca/2009/05/27/aspnet-mvc-and-localization/comment-page-1/#comment-362</link>
		<dc:creator>Alfred</dc:creator>
		<pubDate>Wed, 24 Feb 2010 18:08:38 +0000</pubDate>
		<guid isPermaLink="false">http://helios.ca/?p=65#comment-362</guid>
		<description>Why not handle localization at the application level instead of the controller level?

I came across this other blog post for MVC2: http://adamyan.blogspot.com/2010/02/aspnet-mvc-2-localization-complete.html

Basically, you can set the culture using a specific controller action (into session/cookie/url/etc). Then for every request, lookup the culture and set it on the thread in Global.asax Application_AcquireRequestState() event handler.  This way, your localization management is centralized in one spot, and you won&#039;t have to manage it for every controller.</description>
		<content:encoded><![CDATA[<p>Why not handle localization at the application level instead of the controller level?</p>
<p>I came across this other blog post for MVC2: <a href="http://adamyan.blogspot.com/2010/02/aspnet-mvc-2-localization-complete.html" rel="nofollow">http://adamyan.blogspot.com/2010/02/aspnet-mvc-2-localization-complete.html</a></p>
<p>Basically, you can set the culture using a specific controller action (into session/cookie/url/etc). Then for every request, lookup the culture and set it on the thread in Global.asax Application_AcquireRequestState() event handler.  This way, your localization management is centralized in one spot, and you won&#8217;t have to manage it for every controller.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://helios.ca/2009/05/27/aspnet-mvc-and-localization/comment-page-1/#comment-330</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 02 Feb 2010 18:48:49 +0000</pubDate>
		<guid isPermaLink="false">http://helios.ca/?p=65#comment-330</guid>
		<description>Hey Miguel,

This probably happens because it&#039;s no a browser calling the page, which means &quot;filterContext.RequestContext.HttpContext.Request.UserLanguages;&quot; returns null. Try checking if BrowserLanguages is null or empty before using it.</description>
		<content:encoded><![CDATA[<p>Hey Miguel,</p>
<p>This probably happens because it&#8217;s no a browser calling the page, which means &#8220;filterContext.RequestContext.HttpContext.Request.UserLanguages;&#8221; returns null. Try checking if BrowserLanguages is null or empty before using it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miguel</title>
		<link>http://helios.ca/2009/05/27/aspnet-mvc-and-localization/comment-page-1/#comment-328</link>
		<dc:creator>Miguel</dc:creator>
		<pubDate>Sat, 30 Jan 2010 19:18:04 +0000</pubDate>
		<guid isPermaLink="false">http://helios.ca/?p=65#comment-328</guid>
		<description>Hello,

I am not sure but I think I probably found a problem with your SetCultureAttribute code in http://helios.ca/2009/05/27/aspnet-mvc-and-localization/.

Everything works fine but it is impossible to validate the page with W3C or Verify the page with Google Verify ... Or even index the page in Google. This is because I always get a 500 error. 

I posted a thread in ASP.NET MVC but until now I wasn&#039;t able to solve it:
http://forums.asp.net/t/1520173.aspx

Please, could you help me out?</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I am not sure but I think I probably found a problem with your SetCultureAttribute code in <a href="http://helios.ca/2009/05/27/aspnet-mvc-and-localization/" rel="nofollow">http://helios.ca/2009/05/27/aspnet-mvc-and-localization/</a>.</p>
<p>Everything works fine but it is impossible to validate the page with W3C or Verify the page with Google Verify &#8230; Or even index the page in Google. This is because I always get a 500 error. </p>
<p>I posted a thread in ASP.NET MVC but until now I wasn&#8217;t able to solve it:<br />
<a href="http://forums.asp.net/t/1520173.aspx" rel="nofollow">http://forums.asp.net/t/1520173.aspx</a></p>
<p>Please, could you help me out?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pablo</title>
		<link>http://helios.ca/2009/05/27/aspnet-mvc-and-localization/comment-page-1/#comment-316</link>
		<dc:creator>Pablo</dc:creator>
		<pubDate>Thu, 03 Dec 2009 12:45:30 +0000</pubDate>
		<guid isPermaLink="false">http://helios.ca/?p=65#comment-316</guid>
		<description>Great Article! I was wondering how you deal with databases. Do you use two database, one for each language? Could anyone provide me some information, link, etc or a working example? 
Thanks!</description>
		<content:encoded><![CDATA[<p>Great Article! I was wondering how you deal with databases. Do you use two database, one for each language? Could anyone provide me some information, link, etc or a working example?<br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Quyetle</title>
		<link>http://helios.ca/2009/05/27/aspnet-mvc-and-localization/comment-page-1/#comment-310</link>
		<dc:creator>Quyetle</dc:creator>
		<pubDate>Fri, 06 Nov 2009 03:31:42 +0000</pubDate>
		<guid isPermaLink="false">http://helios.ca/?p=65#comment-310</guid>
		<description>This is best solution i found on the net. Thanks</description>
		<content:encoded><![CDATA[<p>This is best solution i found on the net. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tran Chi Khanh</title>
		<link>http://helios.ca/2009/05/27/aspnet-mvc-and-localization/comment-page-1/#comment-308</link>
		<dc:creator>Tran Chi Khanh</dc:creator>
		<pubDate>Sun, 25 Oct 2009 08:55:20 +0000</pubDate>
		<guid isPermaLink="false">http://helios.ca/?p=65#comment-308</guid>
		<description>Hi, 
Please help me how to use with App_LocalResources. With your demo code, i create localresource for index.aspx (views\home\index.aspx) with Index.aspx.fr.resx and Index.aspx.resx. But when click button in CultureUserControl.ascx from English to French, my content in this file don&#039;t change</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Please help me how to use with App_LocalResources. With your demo code, i create localresource for index.aspx (views\home\index.aspx) with Index.aspx.fr.resx and Index.aspx.resx. But when click button in CultureUserControl.ascx from English to French, my content in this file don&#8217;t change</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sosh</title>
		<link>http://helios.ca/2009/05/27/aspnet-mvc-and-localization/comment-page-1/#comment-199</link>
		<dc:creator>Sosh</dc:creator>
		<pubDate>Sun, 04 Oct 2009 12:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://helios.ca/?p=65#comment-199</guid>
		<description>Interesting, but I don&#039;t really understand what the benefit of implementing this as an attribute is, if you are only going to use the attribute once (on the base controller).</description>
		<content:encoded><![CDATA[<p>Interesting, but I don&#8217;t really understand what the benefit of implementing this as an attribute is, if you are only going to use the attribute once (on the base controller).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paulo Crespo</title>
		<link>http://helios.ca/2009/05/27/aspnet-mvc-and-localization/comment-page-1/#comment-134</link>
		<dc:creator>Paulo Crespo</dc:creator>
		<pubDate>Mon, 07 Sep 2009 13:49:49 +0000</pubDate>
		<guid isPermaLink="false">http://helios.ca/?p=65#comment-134</guid>
		<description>Fantastic article, simply idea and work perfectly !!! 

The best ! Congratulations !</description>
		<content:encoded><![CDATA[<p>Fantastic article, simply idea and work perfectly !!! </p>
<p>The best ! Congratulations !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rein Dolfing</title>
		<link>http://helios.ca/2009/05/27/aspnet-mvc-and-localization/comment-page-1/#comment-125</link>
		<dc:creator>Rein Dolfing</dc:creator>
		<pubDate>Mon, 24 Aug 2009 10:03:24 +0000</pubDate>
		<guid isPermaLink="false">http://helios.ca/?p=65#comment-125</guid>
		<description>Thank you, This is the best &quot;working&quot; solution could find.</description>
		<content:encoded><![CDATA[<p>Thank you, This is the best &#8220;working&#8221; solution could find.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DJ Pepper</title>
		<link>http://helios.ca/2009/05/27/aspnet-mvc-and-localization/comment-page-1/#comment-115</link>
		<dc:creator>DJ Pepper</dc:creator>
		<pubDate>Sun, 16 Aug 2009 17:11:29 +0000</pubDate>
		<guid isPermaLink="false">http://helios.ca/?p=65#comment-115</guid>
		<description>Very cool post. Thank you very much.</description>
		<content:encoded><![CDATA[<p>Very cool post. Thank you very much.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
