I want to localize my MySQL database, I don’t know how to do it best:
1) Create additional columns for different languages:
ID
Field1_RU
Field2_RU
Field1_EN
Field2_EN
Field1_UA
Field2_UA
And when load records from DB, pass to SQL-query language param “RU”
2) For different languages create different tables or databases.
So how can I localize my DB in a good way? Thanx!
How many languages do you need to support? If it’s only one or two, then use extra fields in each table with a language prefix. If it’s an arbitary or large-ish number (say >=3), then use child tables to store the multilingual data for each field along with a language identifier.