<p>What is the best way to support multiple languages for the interface in an ASP.NET MVC application? I've seen people use resource files for other applications. Is this still the best way?</p>

[{'answer_id': 4038, 'author': 'Nick Berardi', 'author_id': 17, 'author_profile': 'https://Stackoverflow.com/users/17', 'pm_score': 2, 'selected': False, 'text': '<p>Yes resources are still the best way to support multiple languages in the .NET environment.  Because they are easy to reference and even easier to add new languages.</p>\n\n<pre><code>Site.resx\nSite.en.resx\nSite.en-US.resx\nSite.fr.resx\netc...\n</code></pre>\n\n<p>So you are right still use the resource files.</p>\n'}, {'answer_id': 4346, 'author': 'Haacked', 'author_id': 598, 'author_profile': 'https://Stackoverflow.com/users/598', 'pm_score': 6, 'selected': True, 'text': "<p>If you're using the default view engines, then local resources work in the views. However, if you need to grab resource strings within a controller action, you can't get local resources, and have to use global resources.</p>\n\n<p>This makes sense when you think about it because local resources are local to an aspx page and in the controller, you haven't even selected your view.</p>\n"}, {'answer_id': 68081, 'author': 'user10479', 'author_id': 10479, 'author_profile': 'https://Stackoverflow.com/users/10479', 'pm_score': 5, 'selected': False, 'text': '<p>I found <a href="https://www.eworldui.net/blog/post/2008/05/16/ASPNET-MVC-Localization.aspx" rel="nofollow noreferrer">this resource</a> to be very helpful</p>\n\n<p>Its a wrapper round the <strong>HttpContext.Current.GetGlobalResourceString</strong> and <strong>HttpContext.Current.GetLocalResourceString</strong> that allows you to call the resources like this...</p>\n\n<pre><code>// default global resource\nHtml.Resource("GlobalResource, ResourceName")\n\n// global resource with optional arguments for formatting\nHtml.Resource("GlobalResource, ResourceName", "foo", "bar")\n\n// default local resource\nHtml.Resource("ResourceName")\n\n// local resource with optional arguments for formatting\nHtml.Resource("ResourceName", "foo", "bar")\n</code></pre>\n\n<p>The only problem I found is that controllers don\'t have access to local resouce strings.</p>\n'}, {'answer_id': 1544105, 'author': 'ADB', 'author_id': 3610, 'author_profile': 'https://Stackoverflow.com/users/3610', 'pm_score': 1, 'selected': False, 'text': '<p>Some of the other solutions mentioned as answer do not work for the released version of MVC (they worked with previous versions of alpha/beta). </p>\n\n<p>Here is a good article describing a way to implement localization that will be strongly-typed and will not break the unit testing of controllers and views: <a href="http://odetocode.com/blogs/scott/archive/2009/07/15/resource-files-and-asp-net-mvc-projects.aspx" rel="nofollow noreferrer">localization guide for MVC v1</a> </p>\n'}, {'answer_id': 5653987, 'author': 'Brady Moritz', 'author_id': 177242, 'author_profile': 'https://Stackoverflow.com/users/177242', 'pm_score': 2, 'selected': False, 'text': '<p>The Orchard project uses a shortcut method called "T" to do all in-page string translations. So you\'ll see tags with a @T("A String to Translate"). </p>\n\n<p>I intend to look at how this is implemented behind the scenes and potentially use it in future projects. The short name keeps the code cleaner since it will be used <em>a lot</em>. </p>\n\n<p>What I like about this approach is the original string (english, in this case) is still easily visible in the code, and doesnt require a lookup in a resource tool or some other location to decode what the actual string should be here. </p>\n\n<p>See <a href="http://orchardproject.net" rel="nofollow">http://orchardproject.net</a> for more info. </p>\n'}, {'answer_id': 11479019, 'author': 'datajohnson', 'author_id': 534135, 'author_profile': 'https://Stackoverflow.com/users/534135', 'pm_score': 0, 'selected': False, 'text': '<p>This is another option, and you\'ll have access to the CurrentUICulture in the controller: </p>\n\n<p>Check <a href="http://subvert.ca/Blog/MVC3-multi-language" rel="nofollow">MVC3-multi-language</a></p>\n'}]
['https://Stackoverflow.com/questions/4034', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/571/']