I am building a web application using LAMP and the Smarty framework. There will be a lot of static content on the website (a page about us, error warnings, confirmation emails, etc.).
The web application must support multiple languages. Is the following approach appropriate?
1) The entire static copy on the pages of the Smarty template (html-pages) will be replaced by calls to smarty plugins, such as {lang file = 'about.xml' getTerm = 'title'}, which returns the string for the title tag in the corresponding language
2) The about.xml file is an XML document on a web server that acts like a dictionary with several languages. This way it will have xml nodes like
<term value="title">
<en><a href="http:
<fr><a href="http:
<ch><a href="http:
</term>
<term value="signupmessage">
<en><a href="http:
<fr><a href="http:
<ch><a href="http:
</term>
3) URL- http://mywebsite.com/language/index.php. - ,
ln -s ./en ./, http://mywebsite.com/en/index.php php http://mywebsite.com/fr/index.php, url . , Google .
? xml , htmlentity html-? ?