check for request.connection before using it for figuring out language stuff
check for request.connection before using it for figuring out language stuff

kmshi/miroguide,kmshi/miroguide,kmshi/miroguide