turquoiseowl / i18n

Smart internationalization for ASP.NET
Other
556 stars 156 forks source link

Issue with empty msgid in .PO files #249

Open ajbeaven opened 8 years ago

ajbeaven commented 8 years ago

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.

image

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).

image

I can fix this issue doing the following:

  1. Copy/paste the entire .PO file in a text editor down until the start of the #~ entries
  2. Delete the .PO file and generate a new one in PoEdit
  3. 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.

Is there something I'm doing wrong here?

turquoiseowl commented 8 years ago

This sounds like a bug in i18n.PostBuild.

ogborstad commented 5 years ago

Any chance this will be fixed?

turquoiseowl commented 5 years ago

Not by me just now. Hoping someone else experiencing the problem can take a look.