get HTTP_ACCEPT_LANGUAGE when necessary

Only get the HTTP_ACCEPT_LANGUAGE value when necessary