I watch the Pluralsight tutorials at asp.net/mvc from Scott Allen and I have a question about globalization. In these videos, he recommends to use Resource files (.resx) to store language-specific strings.
I tried, but failed when I wanted to work with these strings from code. So I had the idea , to use a database with Entity Framework to store them.
My questions are:
- Do I do something wrong with the Resource files ? Should I use them or not ?
- If I shouldn’t, It would be better to create a new database for texts or just add a
DataSet<>?
I’m new in ASP.NET MVC, but I really like the idea, so I want to do everything right from the beginning. That’s why I’m asking so “basic” questions.
Thank you for your answers.
Use Resource files.
Guy Smith-Ferrier is the best resource on this subject.
How To Achieve World (Ready) Domination In ASP.NET MVC 4
Slides and
Source
Maybe read a book: .NET Internationalization: The Developer’s Guide to Building Global Windows and Web Applications