I am currently working on Blog-Software, which is supposed to offer content support in several languages.
I am thinking of a way to design my database (MySQL). My first thought was as follows:
- Each record is saved in a table (allows you to name it
entries). This table contains information that does not change (for example, a unique identifier, if published or not, and a post-type). - Another table (let it be called
content) contains rows (for example, content, title, date and author of a specific language). - Then a unique record identifier is attached to them.
The idea is that one article can be translated into several other languages, but this is not necessary. If there is no translation in the user's native language (determined by his IP address or something else), he sees the standard language (which will be English).
For me, this sounds like a simple multilingual database, and I'm sure there is a design template for this. Unfortunately, I have not found.
If there is no template, how would you understand that? Any input is welcome.
source
share