Reputation: 155
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:
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.
Upvotes: 0
Views: 382
Reputation: 13391
Use Resource files.
Guy Smith-Ferrier is the best resource on this subject.
How To Achieve World (Ready) Domination In ASP.NET MVC 4
So you’ve written your ASP.NET MVC application and you want it to work in another language ? Then this session is for you. World-Readiness is all of the work that a developer needs to do to globalize an application and make it localizable (i.e. capable of being localized). In this session we will cover localizing HTML and HTML Helpers, localizing and globalizing Data Annotations, localizing and globalizing JavaScript and localizing URLs. No previous experience of ASP.NET localization is required.
Maybe read a book: .NET Internationalization: The Developer's Guide to Building Global Windows and Web Applications
Upvotes: 1