开发者

Best Practices to Design multi-language web site database

开发者 https://www.devze.com 2022-12-22 03:53 出处:网络
Best Practices to design multi-language web site database. Technologies employed here开发者_运维问答 are ASP.NET MVC and SQL Server.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号