I'm having some difficulties when i18n.PostBuild generates a .PO file where an empty translation entry is added at the bottom of the file.
This causes the translation immediately above it to error out in PoEdit, presumably because the empty entry is a duplicate (with the first line in the .PO file that also has an empty msguid).
I can fix this issue doing the following:
Copy/paste the entire .PO file in a text editor down until the start of the #~ entries
Delete the .PO file and generate a new one in PoEdit
Open the new .PO file and paste in the content from the old file
Now when the PostBuild does its thing, everything works fine, there is no empty msgid entry created and no validation error in PoEdit as a result.
I'm having some difficulties when i18n.PostBuild generates a .PO file where an empty translation entry is added at the bottom of the file.
This causes the translation immediately above it to error out in PoEdit, presumably because the empty entry is a duplicate (with the first line in the .PO file that also has an empty msguid).
I can fix this issue doing the following:
Now when the PostBuild does its thing, everything works fine, there is no empty msgid entry created and no validation error in PoEdit as a result.
Is there something I'm doing wrong here?