ASP.NET MVC localization -


I want to use the resource file (.resx) to localize in ASP.NET MVC. I think:

  1. Create a default resource file under the App_GlobalResources folder Create many local resource files under the App_LocalResources folder
  2. 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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -