← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1825782] Re: Chinese(zh_TW, zh_CN) lang_code wrong with Django >= 1.7

 

*** This bug is a duplicate of bug 1818639 ***
    https://bugs.launchpad.net/bugs/1818639

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


** This bug has been marked a duplicate of bug 1818639
   Impossible to change language in user settings to Chinese

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1825782

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

Status in OpenStack Dashboard (Horizon):
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1825782/+subscriptions


References