ASP.NET MVC localization -
I want to use the resource file (.resx) to localize in ASP.NET MVC. I think:
- Create a default resource file under the App_GlobalResources folder Create many local resource files under the App_LocalResources folder
- Read the cookie information to set up CultureInFo threads. CurrentThread.CurrentCulture = new
Then, I would like to use the resource file in the controller to set the ViewData value, like something:
View Data [" Title "] = Resources: resource, pageitital; But the syntax is wrong, how can I do this?
Any thoughts?
Take a look here:
Comments
Post a Comment