Chinese(zh_TW, zh_CN) lang_code wrong with Django >= 1.7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I am a chinese user from taiwan. When I was deploying openstack rocky with kolla-ansible, I notice that it had a problem to switch language form en to zh-tw. If I select language to chinese at my own user setting, it just do nothing and still using english.
After search on internet, I found that lang_code of chinese (zh-tw, zh-cn) had been changed to zh-hant and zh-hans while using django version larger than 1.7. But horizon still using the old code, so django didn't let me to switch to zh-tw which not known by django.
I was trying to fix that, and confirm that can be fixed by renaming the zh_TW directory to zh_Hant in both horizon and openstack_dashboard subproject. and run `django-admin compilemessages -l zh_Hant` at the root directory of each subproject. These step can also applied to zh_CN which has the new lang_code zh_Hans.
I think maybe kolla-ansible use the wrong version of django, but I saw that the requirements.txt file of Horizon have the line `Django<
Is it same as bug 1818639?