How to resolve po file upload errors?

Asked by Pål de Vibe

I tried uploading .po files to launchpad, but got errors (failed) in import queue and mails to my account announing the errors. The .pot file was uploaded without problems, but the .po files for each language got errors.

I my case I had to remove all lines saying:

#, fuzzy

and add the following line after the Plural-Forms line in the header of each po file.

"X-Launchpad-Export-Date: 2009-03-09 18:36+0000\n"
"X-Generator: Launchpad (build Unknown)\n"

If you are in doubt, download the file for a specific language and study its format, and then merge it with your own version, or simply edit the one you have downloaded.

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Pål de Vibe
Solved:
Last query:
Last reply:
Revision history for this message
Pål de Vibe (paalvibe) said :
#1

Posted as a hint.

Revision history for this message
Jeroen T. Vermeulen (jtv) said :
#2

You can do that, but be careful!

The marker "#, fuzzy" means that the English msgid changed, and gettext is _guessing_ that this translation belongs to this msgid. If you remove the marker, you are telling the software that the guess is correct.

So where you remove this message, make sure first that the translation is still completely correct! Check for subtle changes like "File not found" vs. "File %s not found" because even that small change means that the fuzzy translation is no longer correct. It's also possible that the meaning of the message has changed slightly. In those cases, remove the entire message.