MDL-21469 mod_chat: Chat window uses browser language rather than preferred language set in profile (Kudo to Dongsheng Cai for the original patch)