1

I'm going to develop an ASP.NET MVC web-app and I'm new to this framework. I usually develop web application on Java platform using Spring MVC as web framework.

I need to implement internationalization in my new application but I can't find a standard approach to achieve this using ASP.NET MVC.

In Spring I usually have several properties files for all the languages supported: messages_en.properties, messages_it.properties, etc. and I use a key-value approach to access the right message in the file:

mainPage.title=The title # in messages_en.properties

mainPage.title=Il titolo # in messages_it.properties

Is there something similar in .NET platform? Or is there any other "standard" way to implement i18n?

1

2 Answers 2

1

You can achieve this with Resources. Its the same simple key => value approach as in Spring, where you have a Resource File for each language.

Sign up to request clarification or add additional context in comments.

Comments

1

ASP.NET uses Resource files to store various strings etc.... and each resource file can contain different language versions accessed using a key, similar to how you work now.

I would advise reading this blog which explains in good detail how to implement this across models, views and controllers:

http://afana.me/post/aspnet-mvc-internationalization.aspx

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.