by Jay » Fri Sep 27, 2002 12:54 pm
The best way is to install a language pack system into your site! The way this is achieved is:
First create a language folder, and then one for the language (eg Languages/English). In that folder place several files which are arrays. In the English one you'd have something like:
$lang['greetings'] = "Hello";
In the French one you'd have:
$lang['greetings'] = "Bon Jour";
Then, to display all the languages your visitors can choose from, just display the names of the language folders. On each page you'd have a variable to let you know which language they want to us, just simply include the file at the beginning. Then, when you want to place the greeting you just put $lang['greetings'] and it'll display the appropriate greeting for the selected language
Easy peasy ;)