Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multilingual Application in ASP.NET MVC - Best Practices?

I'm developing a web application using ASP.NET MVC (I'm new to the framework and actually quite new to web development in general). My application must support multiple languages - there's a bunch of countries for which I need the application to "speak" the local language.

The UI concept is common - have flag icons somewhere, usually the top, possibly with an additional drop-down to include less common languages. At this stage I don't want to get into automatically detecting the source country, but rather start with English and allow users to choose otherwise (and I would remember that setting of course).

I would like to know if there's any "framework" for supporting such multilingual views in ASP.NET MVC that will make the job easier.

Any recommendations?

Thanks

like image 404
Roee Adler Avatar asked Jun 22 '09 13:06

Roee Adler


1 Answers

Check out these links: first second third

Worked for me. In view - HtmlHelper.Resource("greeting"); in controller - this.Resource("greeting");
in model i got my own localization implementation.


Make sure You check out this approach when considering localization implementation.

like image 101
Arnis Lapsa Avatar answered Oct 21 '22 03:10

Arnis Lapsa