Datenschutz: https://www.wikimedia.de/datenschutz
$value) { if ($name == 'Accept-Language'){ // echo "$name $value"; $acceptlang = $value; } } echo "$acceptlang"; print "oi $lang oi"; */ if ( in_array ($lang, array('en-US'))){ $loc1 = "$lang".".utf8"; $loc = $lang; } else $loc = "de-DE"; //$loc = "en-US"; print "$loc $loc1"; $domain = "messages"; setlocale(LC_MESSAGES, $loc); setlocale(LC_ALL, $loc); $results = putenv("LC_ALL=$loc"); $results = putenv("LC_MESSAGES=$loc"); $results = bindtextdomain($domain,"./locale"); ?>