Zhiyi Zhang yi.gd.cn@gmail.com writes:
Superseded patch 138395.
LocaleNameToLCID now can handle zh-Hant and zh-Hans correctly with get_default_children().get_default_children() acts as a map from a parent language to its default child language.Since zh-Hant and zh-Hans are not actual locale identifiers. All locale info of zh-Hant and zh-Hans are directly mapped to its own child language, zh-HK and zh-CN.
The LOCALE_SPARENT data is a good addition, but this could be split to a separate patch. Also you should be able to extend the existing get_default_sublang() logic instead of adding another table of defaults.