Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested YAML dictionary is serialized as OrderedDict in PO file #3895

svenihoney opened this issue Jun 4, 2019 · 1 comment


None yet
2 participants
Copy link

commented Jun 4, 2019


If there is a nested dictionary in a YAML file, the resulting po file contains a string starting with OrderedDict


The nested keys are shown correctly in the PO file

How to reproduce

The following YAML input

- s1: Subtag 1

given to yaml2po -i test.yml -o test.po results in the PO file content of

#: t1-%3E[0]
msgid "OrderedDict([('s1', 'Subtag 1')])"
msgstr ""

I would expect something like

#: t1-%3E[0]-%3Es1
msgid "Subtag 1"
msgstr ""

Perhaps it may be related to #3819.

@svenihoney svenihoney changed the title Nested YAML dictionary is parsed as OrderedDict Nested YAML dictionary is serialized as OrderedDict in PO file Jun 4, 2019

nijel added a commit to nijel/translate that referenced this issue Jun 7, 2019

@nijel nijel self-assigned this Jun 7, 2019


This comment has been minimized.

Copy link

commented Jun 7, 2019

Should be fixed by #3898

@nijel nijel added the formats label Jun 7, 2019

@nijel nijel closed this in #3898 Jun 21, 2019

nijel added a commit that referenced this issue Jun 21, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.