Best Practices to Design multi-language web site database
Best Practices to design multi-language web site database.
Technologies employed here开发者_运维问答 are ASP.NET MVC and SQL Server.
EDIT :
I'm looking for table structure and relationship design.
On the DB side, use unicode (nvarchar and nchar) for your text.
Have a locale lookup table (containing the locale info you need - i.e. decimal point format), and for each table that has localized data add a foreign key to it.
Edit: (following comments)
Best practice is to use resource files for localization.
What you are looking for is described in detail at http://www.west-wind.com/presentations/wwDbResourceProvider/. This shows you how to create a custom resource provider with Admin UI that stores the data in Sql.
精彩评论