Improve zh-* language code handling
|Reported by:||caxekis@…||Owned by:||nobody|
|Severity:||Normal||Keywords:||i18n, chinese, zh|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
As per #18419, zh-cn and zh-tw are deprecated and one of the reason was that "...Traditional Chinese is not used only by Taiwan (tw) but also Honk Kong (hk), and Simplified Chinese is not only used in China (cn) but also Singapore (sg) and Malaysia..." . However pull #1868 https://github.com/django/django/pull/1868 did not specify fallback for those language variant.
I would say we should follow Mediawiki's configuration for chinese language variants fallback (see https://git.wikimedia.org/blob/mediawiki%2Fcore.git/e016f6aa9386f515398d07d25419650c1fb74bf6/languages%2Fclasses%2FLanguageZh.php#L104 line 104 ).
- zh-cn, zh-sg and zh-my fallback to zh-hans
- zh-hk, zh-mo and zh-tw fallback to zh-hant
Change History (4)
comment:1 Changed 13 months ago by claudep
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted