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– qJake2011-08-30 20:54:42 +00:00Commented Aug 30, 2011 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.user920500– user9205002011-08-30 20:57:41 +00:00Commented Aug 30, 2011 at 20:57
-
possible duplicate of Multiple languages in an ASP.NET MVC application?Chris Marisic– Chris Marisic2011-08-30 21:13:23 +00:00Commented Aug 30, 2011 at 21:13
3 Answers
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.
2 Comments
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.
Comments
Scott Hanselman wrote a good article covering this subject... Check it out here: http://www.hanselman.com/blog/GlobalizationInternationalizationAndLocalizationInASPNETMVC3JavaScriptAndJQueryPart1.aspx