Reputation: 1195
I made a multilingual site using resource files (ASP.NET MVC 2). Now I want to use the database in order to make a page where the user can input the information that will be published on the site. Does this mean that I can no longer use resource files? On the way to keep multilingualism using database?
Upvotes: 1
Views: 2775
Reputation: 4108
You should try a custom resource provider. You can then choose what resources come from which sources.
The following urls might be of use:
Upvotes: 0
Reputation: 18501
I'm not 100% sure if I get your question, but from a technical and practical point of view you can mix content coming from Resource files and content coming from a database.
For all you static texts (messages, buttons etc) you will use your resources, and for dynamic texts (texts that [often] change) you will use your database.
It is also possible to create your own resource provider, that instead of taking the resources out of a file, it will take it out of a database.
Upvotes: 2
Reputation: 4114
For static content you can use resource files but if you need to modify data and you want to translate data in different languages you should use data base. using data base is more flexible.
Upvotes: 0