zanata-cli pull overwrites translations of multiple documents with those of the last document
Description
Environment
Debian
Activity
Show:
Assignee
Unassigned
UnassignedReporter
Laurent Lyaudet
Laurent LyaudetTested Version/s
None
Components
Affects versions
Priority

Created 23 August 2019 at 09:55
Updated 23 August 2019 at 09:55
Hello,
We have a gettext translation project using Zanata, with only "en" locale for translations right now.
We tried to use zanata-cli pull to export the translations.
The problem is that we have two documents in the project:
myProjectPart1.pot
myProjectPart2.pot
myProjectPart1 has 16000+ strings to translate
myProjectPart2 has 4500+ strings to translate
When we use zanata-cli pull, it creates/overwrite the file en.po in the current directory.
But it writes it twice, one for each document myProjectPart1/2.
It does not merge the translations.
Instead en.po only contains the 4500+ strings of myProjectPart2 .
I tried
zanata-cli pull --create-skeletons --pull-type both --excludes myProjectPart2
zanata-cli pull --create-skeletons --pull-type both --excludes myProjectPart2.pot
zanata-cli pull --create-skeletons --pull-type both --excludes myProjectPart2.po
zanata-cli pull --create-skeletons --pull-type both --excludes myProjectPart2*
and
zanata-cli pull --create-skeletons --pull-type trans --includes myProjectPart1
zanata-cli pull --create-skeletons --pull-type trans --includes myProjectPart1.pot
zanata-cli pull --create-skeletons --pull-type trans --includes myProjectPart1.po
zanata-cli pull --create-skeletons --pull-type trans --includes myProjectPart1*
None of these commands worked.
en.po is always overwritten with myProjectPart2.po before I can save the translations for myProjectPart1.
Would it be possible to suffix en.po with document names ?
en_myProjectPart1.po
en_myProjectPart2.po
Or add an option to zanata-cli pull to filter gettext documents ?
Thanks in advance, best regards,
Laurent Lyaudet