vegancheck.me/index.php
2021-09-02 20:47:29 +02:00

9 lines
No EOL
210 B
PHP

<?php
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
$supportedLanguages=['en','de'];
if(!in_array($lang,$supportedLanguages)){
$lang='en';
}
require("localization/".$lang.".php");
?>