Bài đăng

Setup a multilingual site using ASP.NET MVC5 theo http://blog.chudinov.net/setup-a-multilingual-site-using-asp-net-mvc5/

Hình ảnh
A multilingual site should translate the following: Date and time formatting Currency Text resources: lables, buttons, validation messages, tooltips It must be easy to switch languages. It should be relatively easy to add more languages. An example ASP.NET MVC 5 project can be downloaded here  https://github.com/mchudinov/AspMvc5Multilingual Contents  [ hide ] 1. Routing 2. Activate culture 2.1 Initialize method 2.2 Language localization filter attribute 3. Create translation resources 3.1 Add App_LocalResources folder 3.2 Add resource files 3.3 Set resource files properties 3.4 Add translations for all string resources 3.5 Add reference to resource namespace to Razor in web.config 3.6 Use translated resources in code 4. Switch between languages 5. Format some numbers as another currency then current culture 6. Format all numbers as another currency then current culture 7. Add new language Share this: 1. Routing Add  lang  parameter to r