How to design a database schema for storing text in multiple languages?

前端 未结 2 1292
清歌不尽
清歌不尽 2021-01-13 07:20

We have a PostgreSQL database. And we have several tables which need to keep certain data in several languages (the list of possible languages is thankfully system-wide defi

2条回答
  •  走了就别回头了
    2021-01-13 07:44

    Here's a great article the Mozilla developers put together on making their database multilingual. It's specific to CakePHP, but the info can easily be applied to other systems. Also, note that it makes SQL queries significantly more complex, which is a drawback. That will generally be true regardless of your i18n implementation, though.

    1. Part 1
    2. Part 2
    3. Part 3

提交回复
热议问题