Mailinglisten-Archive |
On Wed, 11 Aug 1999 16:35:01 +0200, Markus Dobel wrote: >guck mal nach $HTTP_ACCEPT_LANGUAGE, das was netscape und opera und so >liefern, ist nur die sprachversion des browsers, die jedoch nur bedingt >was mit den sprachen zu tun hat, die der user gern haette. Probier das hier: // Check language if (strlen($lang) == 0) { $lang = GetEnv("HTTP_ACCEPT_LANGUAGE"); $lang = strtolower(substr($lang,0,2)); // first two letters } // Switch languages switch ($lang) { // language selection case "de": include ("include/german.inc.php3"); break; case "en": include ("include/english.inc.php3"); break; case "es": include ("include/spain.inc.php3"); break; case "fr": include ("include/french.inc.php3"); break; default: $lang = "en"; include ("include/english.inc.php3"); break; } ciao amalesh -- Anwendungsentwicklung mit C++ JAVA VB PHP ASP SQL POET SGML XML http://www.living-source.com ~ ak_(at)_living-source.com ~ icq963380 Hamburg : Tel. 040-39904183 Fax. 040-39904328 Mob. 0170-4809618 Freiburg: Tel. 0761-152580 Fax. 0761-1525850
php::bar PHP Wiki - Listenarchive