Forward port of 3039d76bd6 from stable/1.9.x
3039d76bd6
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.