title: How does the App_LocalResources work with MVC?
body: <p>I've been working through my first MVC application, and I'd like to localize it.  I know how to use the App_GlobalResources but I'd prefer to use the App_LocalResources.</p>
  
  <p>In a typical WebForms application, you put the App_LocalResources folder in the same directory as the ASPX file... is this the same in MVC (IE: do I put them in the respective subfolders in the "views" directory)?</p>
  
  <p>Also, when accessing the App_GlobalResources in your view you can do it like so <code>&lt;%=Html.Encode(Resources.Index.Title)%&gt;</code> however I cannot do that with the App_LocalResources.  I don't want to have to make my <code>&lt;label runat="server"</code> in order to take advantage of the <code>meta:resourcekey</code></p>
  
  <hr>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I discovered ONE method to do this, but I'm not sure if this is the best method.  Here's the idea</p>
  
  <ol>
  <li>You put the <code>App_LocalResources</code> folder as a sub folder within your respective View folder</li>
  <li>You create resx files that correspond to your Views... IE: <code>Index.resx</code> or <code>About.resx</code></li>
  <li>You set the Resx files properties to be "Public" (PublicResXFileCodeGenerator), "Embeded Resource", "Views.[viewname]" namespace</li>
  <li>Create a new resource name called "Title" and put whatever you want in the Value.</li>
  </ol>
  
  <p>Now I can reference the Local Resources using something like this </p>
  
  <p><code>&lt;%= MyProj.Views.Home.Index.Title%&gt;</code></p>
  
  <p>The only problem I see with this is the fact that the resources are embedded and I cannot add new locales without re-compiling the project.</p>
  
  <p><a href="http://www.devproconnections.com/article/aspnet2/ASP-NET-MVC-Localization.aspx" rel="noreferrer">Here is my reference on this method.</a></p>