Database Localization - Lookup lists - smarter way

后端 未结 3 1295
感动是毒
感动是毒 2021-01-01 06:24

I\'m looking to add some lookup lists in the database, but I want them to be easy localizable (SQL 2005, ADO.NET)

This would include:

  • Easy Management
3条回答
  •  感动是毒
    2021-01-01 06:50

    After studying the problem in detail I have found the following:

    1. I could use the SET CONTEXT_INFO, but I would have to inject some SQL to solve the problem.

    2. The best option would be not to store localized data in the look-up tables. Instead, store some identification strings, and use custom localization logic in the application to match the strings to localized data. For the .NET framework it would be implemented by using resources, with a custom resource provider if I want to retreive localized information from a databse.

    Thank you for your answers.

提交回复
热议问题