Pseudo-translation generation fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
High
|
Nick Timkovich |
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:/
$ tox -e manage -- update_catalog -l fr --pseudo
...
File "/Users/
pot_cat = pofile.read_po(f, ignore_
AttributeError: 'str' object has no attribute 'read_po'
ERROR: InvocationError: '/Users/
Change submitted to https:/
Changed in horizon: | |
assignee: | nobody → Nick Timkovich (nicktimko) |
status: | New → In Progress |
Changed in horizon: | |
milestone: | none → pike-rc2 |
importance: | Undecided → High |
Changed in horizon: | |
milestone: | pike-rc2 → queens-1 |
Reviewed: https:/ /review. openstack. org/492670 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=846fc19d719 182700656039f91 f09e212cabd9ec
Committed: https:/
Submitter: Jenkins
Branch: master
commit 846fc19d7191827 00656039f91f09e 212cabd9ec
Author: Nick Timkovich <email address hidden>
Date: Thu Aug 10 15:07:52 2017 -0500
Fix pofile for pseudo translations
The pofile name in the pseudo translation logic appears to expect the
babel.messages object, not the string holding the location of the pofile.
Trimmed a string that gettext reacts poorly with when creating pseudo-
translations.
Change-Id: I811711412d85a9 89826a946d1d57e d39790e34ed
Closes-Bug: 1710003