Home › Forums › CSS › Multi-Langage website › Re: Multi-Langage website
I have not read all of this:
http://webtips.dan.info/language.html
also, if you want, just thinking here never tried or tested….
you could add in a peice of php to test, the language preference, and have the php load from a certain file.
http://blog.sorcellerieweb.net/post/200 … s-with-PHP
http://svn.gna.org/viewcvs/clansuite/we … iew=markup
………………………………………..
If your going to have a static site but for both languages, then I would have them set apart in different directories: http://www.abc.com/en http://www.abc.co.uk/es
but have a generic index.php to start with:
in that test for header language and include the correct directory for the language: e,g:
$lang = substr($_SERVER, 0, 2);
if($lang == "es"){
include(‘www.abc.com/es/index.php’);
}
else if($lang == "en"){
include(‘www.abc.com/en/index.php’);
}
ik