Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP MVC technique for supporting multiple languages

I want to make a web app that support multiple languages(English, German, French ...) I also want to detect the browser language to use as default and also let the user select the language.

What will be the best approach for doing this?

  1. To have a separate view for each language. Keep the language in the user's session and render the correct view.
  2. To have the string translation in DB, and translate using a custom mechanism each time I render the view.
  3. Does MVC have some native support for this?
  4. Other option?

Thanks,

Radu

like image 883
Radu D Avatar asked Dec 15 '10 08:12

Radu D


People also ask

Which language is used in MVC?

The MVC pattern is widely used in program development with programming languages such as Java, Smalltalk, C, and C++.


1 Answers

I would recommend you going through the following guide.

like image 145
Darin Dimitrov Avatar answered Nov 12 '22 09:11

Darin Dimitrov