<?
/*
Date: 9-05-2006 15:57
Author: B.Heesen (b.heesen@dbds.nl)
Version: 0.1b
© Cpyright 2006 De Bron Digital Solutions (http://www.dbds.nl)
*/
// Set language according to the user's international settings
$strAcceptLanguage = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
$strPos = strrpos($strAcceptLanguage, ",");
If ($strPos>0) {$strAcceptLanguage = substr($strAcceptLanguage, 0, $strPos);}
Switch (strToLower($strAcceptLanguage))
{
// Danish Locations
case "da":
require("lang/da.lang.php");
break;
// Dutch Locations
case "nl" or "nl-be":
require("lang/nl.lang.php");
break;
// Italian Locations
case "it" or "it-ch":
require("lang/it.lang.php");
break;
//english and others
default:
require("lang/en.lang.php");
break;
}
?>
|