I work on a site that select automatic the language from the visitor and then include the right language file but it do not work
correct:
if ($HTTP_ACCEPT_LANGUAGE == "de([-][[:alpha:]]{2})?|german") {
include "de.inc" ;
}
elseif ($HTTP_ACCEPT_LANGUAGE == "es([-][[:alpha:]]{2})?|spanish") {
include "es.inc";
}
else {
include "en.inc";
}
😕 please can anyone help me,
thanks,
fred