Public bug reported:

Pseudo-translations fail to generate; it looks the logic expects the
"pofile" name to be a babel function, not the string that holds the
filename. Not sure if this is old logic, but I was following along with
https://docs.openstack.org/horizon/latest/contributor/topics/translation.html
#pseudo-translation-tool

$ tox -e manage -- update_catalog -l fr --pseudo
...
  File 
"/Users/npt/Code/Ar/horizon/openstack_dashboard/management/commands/update_catalog.py",
 line 105, in handle
    pot_cat = pofile.read_po(f, ignore_obsolete=True)
AttributeError: 'str' object has no attribute 'read_po'
ERROR: InvocationError: '/Users/npt/Code/Ar/horizon/.tox/manage/bin/python 
/Users/npt/Code/Ar/horizon/manage.py update_catalog -l fr --pseudo'

Change submitted to https://review.openstack.org/492670

** Affects: horizon
     Importance: Undecided
     Assignee: Nick Timkovich (nicktimko)
         Status: In Progress

-- 
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/1710003

Title:
  Pseudo-translation generation fails

Status in OpenStack Dashboard (Horizon):
  In Progress

Bug description:
  Pseudo-translations fail to generate; it looks the logic expects the
  "pofile" name to be a babel function, not the string that holds the
  filename. Not sure if this is old logic, but I was following along
  with
  https://docs.openstack.org/horizon/latest/contributor/topics/translation.html
  #pseudo-translation-tool

  $ tox -e manage -- update_catalog -l fr --pseudo
  ...
    File 
"/Users/npt/Code/Ar/horizon/openstack_dashboard/management/commands/update_catalog.py",
 line 105, in handle
      pot_cat = pofile.read_po(f, ignore_obsolete=True)
  AttributeError: 'str' object has no attribute 'read_po'
  ERROR: InvocationError: '/Users/npt/Code/Ar/horizon/.tox/manage/bin/python 
/Users/npt/Code/Ar/horizon/manage.py update_catalog -l fr --pseudo'

  Change submitted to https://review.openstack.org/492670

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to