I need an idea on how to make a complete multilanguage website. I came across many ways some are having an xml file to have template bits translated. This works if I only want the main template. But even the content will be translated.
For example I have a new entry in english, it should be translated to 4 other languages. Most attributes are common.
What i reached so far is by creating a table for the main website template with attributes:
lang, tag, value
In my template it will do a match on lang and tag.
What is the best way to translate the rest of the website (dynamic php pages using mysql)
You need a table for languages as below:
Then for example you have a table for posts as below:
In the post table you need a key like

langid, which refers to the specific language in the language table. In you dashboard you will have something as below:Each textbox refers to that specific language.
You should have another table for site’s menus, and put langid foreign key in there. You should be well on your way.