I am trying to design a structure translate(en -> fr) for all system.
my database :
translates(id,table,key_for_search,column_to_translate,lang,translate)
id | table | key_for_search | column_to_translate | lang | translate
1 | posts | 2 | title | en | hello
2 | posts | 2 | title | sp | hola
add translate to new table or when exists is possible.
this way is good ?
thanks for reply.
sorry for my bad english.
I think I talked unclear.
my tables for example:
and my query for get translate
why me using this way ?
because i can in future add new table and I do not need for new design table or new programming
this is a good idea ?