<?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: Localizing MVC for ASP.NET views and master pages</title>
	<atom:link href="http://damieng.com/blog/2008/04/27/localizing-mvc-for-aspnet-views-and-master-pages/feed" rel="self" type="application/rss+xml" />
	<link>http://damieng.com/blog/2008/04/27/localizing-mvc-for-aspnet-views-and-master-pages</link>
	<description>A .NET developer in Redmond</description>
	<lastBuildDate>Wed, 10 Mar 2010 22:08:10 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Damien Guard</title>
		<link>http://damieng.com/blog/2008/04/27/localizing-mvc-for-aspnet-views-and-master-pages#comment-9806</link>
		<dc:creator>Damien Guard</dc:creator>
		<pubDate>Thu, 23 Oct 2008 17:14:47 +0000</pubDate>
		<guid isPermaLink="false">http://damieng.com/?p=906#comment-9806</guid>
		<description>That may well be the case, the article is rather old.  I will try to revise it or mark it as obsolete. Thanks,

[)amien</description>
		<content:encoded><![CDATA[<p>That may well be the case, the article is rather old.  I will try to revise it or mark it as obsolete. Thanks,</p>
<p>[)amien</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Rotkiske</title>
		<link>http://damieng.com/blog/2008/04/27/localizing-mvc-for-aspnet-views-and-master-pages#comment-9804</link>
		<dc:creator>Kevin Rotkiske</dc:creator>
		<pubDate>Thu, 23 Oct 2008 15:50:29 +0000</pubDate>
		<guid isPermaLink="false">http://damieng.com/?p=906#comment-9804</guid>
		<description>i dont think this is applicable in the preview 5 release.</description>
		<content:encoded><![CDATA[<p>i dont think this is applicable in the preview 5 release.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damien Guard</title>
		<link>http://damieng.com/blog/2008/04/27/localizing-mvc-for-aspnet-views-and-master-pages#comment-9796</link>
		<dc:creator>Damien Guard</dc:creator>
		<pubDate>Wed, 22 Oct 2008 20:10:58 +0000</pubDate>
		<guid isPermaLink="false">http://damieng.com/?p=906#comment-9796</guid>
		<description>@Kevin: They are defined and called by the parent class (ViewLocator)

[)amien</description>
		<content:encoded><![CDATA[<p>@Kevin: They are defined and called by the parent class (ViewLocator)</p>
<p>[)amien</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Rotkiske</title>
		<link>http://damieng.com/blog/2008/04/27/localizing-mvc-for-aspnet-views-and-master-pages#comment-9795</link>
		<dc:creator>Kevin Rotkiske</dc:creator>
		<pubDate>Wed, 22 Oct 2008 20:00:44 +0000</pubDate>
		<guid isPermaLink="false">http://damieng.com/?p=906#comment-9795</guid>
		<description>I don&#039;t understand how the variables in the constructor could work. they are never called in the code. The ViewLocationFormats and MasterLocationFormats variables are not passed to the other routines and are not properties of the base class. Am I missing something?</description>
		<content:encoded><![CDATA[<p>I don&#8217;t understand how the variables in the constructor could work. they are never called in the code. The ViewLocationFormats and MasterLocationFormats variables are not passed to the other routines and are not properties of the base class. Am I missing something?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Weekly Links: ASP.NET MVC, Silverlight 2, jQuery, CSS, C#&#8230; &#124; Code-Inside Blog International</title>
		<link>http://damieng.com/blog/2008/04/27/localizing-mvc-for-aspnet-views-and-master-pages#comment-8367</link>
		<dc:creator>Weekly Links: ASP.NET MVC, Silverlight 2, jQuery, CSS, C#&#8230; &#124; Code-Inside Blog International</dc:creator>
		<pubDate>Mon, 28 Apr 2008 19:23:41 +0000</pubDate>
		<guid isPermaLink="false">http://damieng.com/?p=906#comment-8367</guid>
		<description>[...] Localizing MVC for ASP.NET views and master pages [...]</description>
		<content:encoded><![CDATA[<p>[...] Localizing MVC for ASP.NET views and master pages [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://damieng.com/blog/2008/04/27/localizing-mvc-for-aspnet-views-and-master-pages#comment-8365</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 28 Apr 2008 14:31:13 +0000</pubDate>
		<guid isPermaLink="false">http://damieng.com/?p=906#comment-8365</guid>
		<description>Ah ok. I think this just reflects differences in the application type &amp; development workflow - the apps I worked on consisted of many hundreds of individual views (complex web-based TP application with a huge variety of transactions &amp; screens) so of course a designer was never going to be involved in designing every individual view, just the templates of each general component &amp; the overall style. Resources like images were just pulled in from a potentially localised folder too. Each view was light but when you have this many of them, writing one per language would be insane, and also if localisation was outsourced, it can  be done just by editing text files. If you have a small app where a designer will be touching every single view directly then I can see it would be different.</description>
		<content:encoded><![CDATA[<p>Ah ok. I think this just reflects differences in the application type &amp; development workflow &#8211; the apps I worked on consisted of many hundreds of individual views (complex web-based TP application with a huge variety of transactions &amp; screens) so of course a designer was never going to be involved in designing every individual view, just the templates of each general component &amp; the overall style. Resources like images were just pulled in from a potentially localised folder too. Each view was light but when you have this many of them, writing one per language would be insane, and also if localisation was outsourced, it can  be done just by editing text files. If you have a small app where a designer will be touching every single view directly then I can see it would be different.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damien Guard</title>
		<link>http://damieng.com/blog/2008/04/27/localizing-mvc-for-aspnet-views-and-master-pages#comment-8363</link>
		<dc:creator>Damien Guard</dc:creator>
		<pubDate>Mon, 28 Apr 2008 13:53:39 +0000</pubDate>
		<guid isPermaLink="false">http://damieng.com/?p=906#comment-8363</guid>
		<description>You&#039;ve just hit the nail on the head &quot;when the content is going to be the same except for the labels / text&quot;. Not everything is a input form - think web sites that are mostly content.

Devs might be happy with a big resource file for each language and a bunch of almost-empty views but non-devs won&#039;t be happy trying to maintain these abstract elements.  Is it really worth penalising these guys with their regularly-changing content just to make your life a bit easier in the rarer case that the structure of a view needs to change?

Given the use of master pages, user controls and CSS the views themselves can be very lightweight indeed and I&#039;m not convinced that they are complex enough to force designers and translators into working in such a disconnected and disoriented manner.

Of course if you&#039;re app is all repeated forms, labels and buttons then it&#039;s a different story.

[)amien</description>
		<content:encoded><![CDATA[<p>You&#8217;ve just hit the nail on the head &#8220;when the content is going to be the same except for the labels / text&#8221;. Not everything is a input form &#8211; think web sites that are mostly content.</p>
<p>Devs might be happy with a big resource file for each language and a bunch of almost-empty views but non-devs won&#8217;t be happy trying to maintain these abstract elements.  Is it really worth penalising these guys with their regularly-changing content just to make your life a bit easier in the rarer case that the structure of a view needs to change?</p>
<p>Given the use of master pages, user controls and CSS the views themselves can be very lightweight indeed and I&#8217;m not convinced that they are complex enough to force designers and translators into working in such a disconnected and disoriented manner.</p>
<p>Of course if you&#8217;re app is all repeated forms, labels and buttons then it&#8217;s a different story.</p>
<p>[)amien</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://damieng.com/blog/2008/04/27/localizing-mvc-for-aspnet-views-and-master-pages#comment-8362</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 28 Apr 2008 13:15:21 +0000</pubDate>
		<guid isPermaLink="false">http://damieng.com/?p=906#comment-8362</guid>
		<description>Can you give some examples of when string replacement doesn&#039;t work? I&#039;ve never had a problem with determining what labels / text mean when they&#039;re expressed as resource names rather than explicit text, simply because I just name them after the English description so it&#039;s usually pretty obvious. I&#039;ve been involved in quite large systems that had locale support available like this, but the caveat is that I never actually translated any of the text :) Having the option to was important though.

It just seems overkill to have a view page for every language when the content is going to be the same except for the labels / text, seems to violate DRY. I could imagine there being a need for different versions for right-to-left systems or something like that though.</description>
		<content:encoded><![CDATA[<p>Can you give some examples of when string replacement doesn&#8217;t work? I&#8217;ve never had a problem with determining what labels / text mean when they&#8217;re expressed as resource names rather than explicit text, simply because I just name them after the English description so it&#8217;s usually pretty obvious. I&#8217;ve been involved in quite large systems that had locale support available like this, but the caveat is that I never actually translated any of the text :) Having the option to was important though.</p>
<p>It just seems overkill to have a view page for every language when the content is going to be the same except for the labels / text, seems to violate DRY. I could imagine there being a need for different versions for right-to-left systems or something like that though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damien Guard</title>
		<link>http://damieng.com/blog/2008/04/27/localizing-mvc-for-aspnet-views-and-master-pages#comment-8361</link>
		<dc:creator>Damien Guard</dc:creator>
		<pubDate>Mon, 28 Apr 2008 12:13:44 +0000</pubDate>
		<guid isPermaLink="false">http://damieng.com/?p=906#comment-8361</guid>
		<description>I intentionally spelt it in American format for SEO ;-)

You can replace parts of the page using locale-specific resources without any additional support but in my experience this &quot;string replacement&quot; philosophy works to a point when suddenly it just isn&#039;t suitable any more.

The other problem with that is when you open the page it&#039;s quite difficult to know what you&#039;re looking at when all the language-specific stuff isn&#039;t present.

Given that views are supposed to be very simple and that you can use user-controls within them to perform the logic they make good candidates for having their own file-per-language for small sites.

[)amien</description>
		<content:encoded><![CDATA[<p>I intentionally spelt it in American format for SEO ;-)</p>
<p>You can replace parts of the page using locale-specific resources without any additional support but in my experience this &#8220;string replacement&#8221; philosophy works to a point when suddenly it just isn&#8217;t suitable any more.</p>
<p>The other problem with that is when you open the page it&#8217;s quite difficult to know what you&#8217;re looking at when all the language-specific stuff isn&#8217;t present.</p>
<p>Given that views are supposed to be very simple and that you can use user-controls within them to perform the logic they make good candidates for having their own file-per-language for small sites.</p>
<p>[)amien</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://damieng.com/blog/2008/04/27/localizing-mvc-for-aspnet-views-and-master-pages#comment-8360</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 28 Apr 2008 11:36:16 +0000</pubDate>
		<guid isPermaLink="false">http://damieng.com/?p=906#comment-8360</guid>
		<description>Oh bugger, I spelt it wrong too at the start of my comment. I blame your title ;)</description>
		<content:encoded><![CDATA[<p>Oh bugger, I spelt it wrong too at the start of my comment. I blame your title ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://damieng.com/blog/2008/04/27/localizing-mvc-for-aspnet-views-and-master-pages#comment-8359</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 28 Apr 2008 11:35:37 +0000</pubDate>
		<guid isPermaLink="false">http://damieng.com/?p=906#comment-8359</guid>
		<description>I&#039;m not a localization expert by any means, but is it common to want to replace an entire view like that? Usually I understand that localised messages / labels and number/date formats are enough, using a common view, and that you&#039;d only need a completely specialised view if there were layout concerns with that particular locale, which is a lot less common.

As regards the structure of the view / controller here, I hope it&#039;s possible to eventually configure this stuff outside of code. When I&#039;ve worked with very large view / controller setups it&#039;s invaluable to be able to simply declare flows in a compact form, rather than having to write code for them - although occasionally being able to write code too is useful (data-sensitive redirects for example). Maybe this example is specific to having to inject localisation though. 

Oh, and deep, deep shame on you for spelling localiSation wrong. You&#039;re not a Yank yet! ;)</description>
		<content:encoded><![CDATA[<p>I&#8217;m not a localization expert by any means, but is it common to want to replace an entire view like that? Usually I understand that localised messages / labels and number/date formats are enough, using a common view, and that you&#8217;d only need a completely specialised view if there were layout concerns with that particular locale, which is a lot less common.</p>
<p>As regards the structure of the view / controller here, I hope it&#8217;s possible to eventually configure this stuff outside of code. When I&#8217;ve worked with very large view / controller setups it&#8217;s invaluable to be able to simply declare flows in a compact form, rather than having to write code for them &#8211; although occasionally being able to write code too is useful (data-sensitive redirects for example). Maybe this example is specific to having to inject localisation though. </p>
<p>Oh, and deep, deep shame on you for spelling localiSation wrong. You&#8217;re not a Yank yet! ;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
