fix locale can not be set correctly by accepted-lanagues header.
fix locale can not be set correctly by accepted-lanagues header.

okfn/timemapper,kuansim/timemap,ukris/timemapper,ukris/timemapper,okfn/timemapper,kuansim/timemap,kuansim/timemap,ukris/timemapper,okfn/timemapper