This is a fairly specific issue, but hopefully someone knows something (if the problem is on our end, feel free to close).
We've been using POEdit to (re)generate the POT file for Pressbooks and we use Transifex to manage translations. I have been trying out the wp-cli make-pot command and I get this error from the Transifex CLI when trying to upload the resulting POT file:
Error received from server: Your source file is not a POT file and the translation file you're using has more than two plurals which is not supported.
I ran the command with these options from the plugin root:
wp i18n make-pot . languages/_pressbooks.pot --exclude="vendor,symbionts" --headers='{"Report-Msgid-Bugs-To":"https://github.com/pressbooks/pressbooks/"}'
I note that in the wp-cli generated file, the second msgstr is missing from plural strings:
#: inc/class-cloner.php:2045 inc/modules/import/wordpress/class-wxr.php:337
#, php-format
msgid "%s part"
msgid_plural "%s parts"
msgstr[0] ""
- msgstr[1] ""
Is this expected?
Thanks in advance for any information that might lead to resolution!