can you test to see that this doesn't crash if request.env['HTTP_ACCEPT_LANGUAGE'] or locale is nil?