Opened 10 years ago
Closed 10 years ago
#23005 closed Bug (fixed)
Improve zh-* language code handling
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Internationalization | Version: | dev |
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 |
Easy pickings: | no | UI/UX: | no |
Description
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 by , 10 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 10 years ago
Has patch: | set |
---|
comment:3 by , 10 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
comment:4 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
https://github.com/django/django/pull/2905