What's the efficient technique to implement multilingual in ASP.net MVC?
-
1This question is too broad... you're asking how to do i18n with ASP/C#, and there are quite a number of ways to do this, each of which may or may not be suited for what you want. You've also provided little to no other detail on how, specifically, you want this to work or what type of application you're building this for, so we can't tailor your answer to your specific needs, which only adds to my original point that this question **is too broad.** Did you try googling "ASP MVC Internationalization" or similar keywords to find what you're looking for? – qJake Aug 30 '11 at 20:54
-
I know there are a number of ways to implement multilingual but I want to hear from expert which one is the best. – Aug 30 '11 at 20:57
-
possible duplicate of [Multiple languages in an ASP.NET MVC application?](http://stackoverflow.com/questions/4034/multiple-languages-in-an-asp-net-mvc-application) – Chris Marisic Aug 30 '11 at 21:13
3 Answers
I would use a Resource file. Extension .resx
Example have English.resx for english and Spanish.resx for spanish and have a way to store the local of the user and when the app loads you load the appropriate resx file.
In those files you coule use the , where the key would be the same in all the files and value would be sentence/word in that language for that key.
The keys would be used in your app in place of typing text straight into a text available tag.

- 3,288
- 1
- 19
- 31
Scott Hanselman wrote a good article covering this subject... Check it out here: http://www.hanselman.com/blog/GlobalizationInternationalizationAndLocalizationInASPNETMVC3JavaScriptAndJQueryPart1.aspx

- 3,401
- 2
- 22
- 24
Have you searched before you ask you question ? there are many resources out there, have a look at the following links :
Multiple languages in an ASP.NET MVC application?
Creating ASP.NET MVC Multilingual Web Application
Multilingual ASP.NET MVC website
hope this help.

- 1
- 1

- 6,409
- 12
- 53
- 88