Re: Multilanguage website
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Multilanguage website

From: <petermichaux@yahoo.com>
Date: Sat Jul 09 2005 - 21:51:14 CEST

I am doing exactly what Jerry suggested

in "index.php" I have something like the following. (this isn't tested
because really I have it spread out through a few files.)

<?php

session_start();

define("DEFAULT_LANGUAGE", 'ge');
define("SITE_ROOT", dirname(__FILE__));

if ( !isset($_SESSION['Language']) )
{
        $_SESSION['Language'] = DEFAULT_LANGUAGE;
}
require_once(SITE_ROOT."/languages/".$_SESSION['Language']."/language.php");

?>
Received on Mon Oct 17 21:04:37 2005