(History) Best Practices for ASP.NET MVC Internationalization

I am trying to fully understand this topic, and I do not think that I can do it if I also do not understand the history of recommendations in addition to the current recommendation.

My brief description of this story is given below, and I would like to know if this is mostly correct?

  • ASP.NET 1.1 recommended using satellite assemblies and the ResourceManager class
  • ASP.NET 2.0 switched to the recommendation to use .resource files (does not load in the DLL) and access them through HttpContext.GetGlobalResourceObject
    • Satellite assemblies are still generated, but they were created invisibly at runtime.
    • "GetGlobalResourceObject" did the work of checking the HTTP header culture information for you, while selecting the resource.
  • ASP.NET MVC, with an emphasis on testability, has reverted back to the satellite assemblies / ResourceManager class as the main recommendation for accessing I18N resources.
    • The presence of assembly assemblies created during ASP.NET runtime is incompatible with the unit test framework trying to access resources.
    • Using the ResourceManager requires the hair to work more for the developer (because they need to write code to verify the session, cookie or HTTP header information for the culture), but also more flexible precisely because (1) it allows the culture to be selected not only with HTTP headers , but also (2) allows unit tests to easily determine which culture is used.

? MVC - "" MVC3 ( MVC4)?

+3
2

ASP.NET MVC

ASP.Net MVC - , Microsoft.Net Framework -. MVC, , (TDD). Asp.Net MVC - -. ASP.NET MVC Framework .

Asp.Net MVC1

13 2009 .

.Net 3.5 Visual Studio 2008 Visual Studio 2008   SP1
MVC WebForm Engine
Html   
Ajax



   Asp.Net MVC2

10 2010 .

  .Net 3.5, 4.0 Visual Studio 2008 2010
  HTML- , HTML-
  Templated Helpers

  
amp;   
  
HTTP-,   GET, PUT, POST DELETE
  


Asp.Net MVC3

13 2011 .

.Net 4.0 Visual Studio 2010
Razor





Resolver
Entity Framework Code

ViewBag

JavaScript JavaScript, jQuery JSON
NuGet
Intellisense Razor Visual Studio

Asp.Net MVC4

15 2012 .

.Net 4.0, 4.5 Visual Studio 2010SP1 Visual Studio 2012
ASP.NET Web API

jQuery Mobile



SDK Windows Azure

Asp.Net MVC5

17 2013 .

.Net 4.5, 4.5.1 Visual Studio 2013
One Asp.Net
Asp.Net
ASP.NET Scaffolding
- ASP.NET MVC
Bootstrap MVC
ASP.NET Web API2

: -

+1

, . , ResourceManager

.resource , .

0

All Articles