Chinese(zh_TW, zh_CN) lang_code wrong with Django >= 1.7

Bug #1825782 reported by JianBo Liao
6
This bug affects 1 person
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<2,>=1.11;python_version<'3.0' # BSD` , so that must be a bug if horizon.

Revision history for this message
Akihiro Motoki (amotoki) wrote :

Is it same as bug 1818639?

Revision history for this message
JianBo Liao (jbliao) wrote :

Oh, I didn't see that similar issue. I think this is the same bug.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.