I am trying to achieve globalization/localization in my MVC 3 application. I don't want different Views for each language. Please suggest how I can proceed. Any supported links/URLs will be of great help.
You localize it in the same way as any other application like this:
PublicResXFileCodeGenerator
Use the translations in place of text in your views like with the following code:
@Strings.MyString
Strings will be automatically translated in the view depending on CultureInfo.CurrentCulture but this is not set automatically for you
You will need to change the CurrentCulture
(potentially in Application_BeginRequest
). How you do this is up to you, it could be a route value which sets it or you can read the user's browser language
You can find a list of the user's prefered languages (in order) in HttpContext.Current.Request.UserLanguages
.