2

I'm trying to implement this feature.

I created a resource and set it access modifier to public, also Custom Tool property value to PublicResXFileCodeGenerator.

I'm trying to get an instance of this resource but I can't, either with strongly type the resource name nor with Type.GetType("WebProject.Resources.Home.ViewModels.ResourceName1");.

0

1 Answer 1

3

I don't like the way MVC is doing localization so I made it my way. You can check my tutorial here: http://kosev.blogspot.com/2010/06/tutorial-create-aspnet-mvc-localization.html

I'm using simple XML language files, then I have Translator class with caching + html helpers for easy translation in html views. Hope this helps.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.