Forward port of d1b206daf8 from stable/1.8.x
d1b206daf8
Language codes for Chinese are zh_Hans (Simplified) and zh_Hant (Traditional). Added support for browsers that still send the deprecated language codes. Thanks to Olli Wang for the report.