kurt.santo Posted November 18, 2007 Share Posted November 18, 2007 Following up two of my previous posts concerning multi-language website I would like to check what is the better option:I learned that I could use include files for navigation and content or that I could get relevant language fields from two files (one for each language). If I had to convert a pure HTML/CSS site with five languages (maybe more in future), which option would you consider the best option with regard to maintenance? Also, if at some stage we were to convert the site into a simple CMS system, so my mate can update the whole thing himself what would be the best option to "future-proof" the whole thing?Kurt Link to comment Share on other sites More sharing options...
justsomeguy Posted November 19, 2007 Share Posted November 19, 2007 Set it up with each language in it's own folder. The folder structures of the languages should be the same, with the same files in them. That way if you want to add a new language you can just add a new folder with all the content files in it that are in that language, it separates the languages. So you would include files like this:include "include/{$lang}/header.php"; Link to comment Share on other sites More sharing options...
kurt.santo Posted November 19, 2007 Author Share Posted November 19, 2007 Set it up with each language in it's own folder. The folder structures of the languages should be the same, with the same files in them. That way if you want to add a new language you can just add a new folder with all the content files in it that are in that language, it separates the languages. So you would include files like this:include "include/{$lang}/header.php";So, the way forward are include files stored cleverly into their own language folders... Cheers, will set it up as adviced:-)Kurt Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.