Rosetta tells me error in format

Asked by Henrik Pauli

Rosetta keeps telling me I have an error in the format of my pot and po files, but I can msgfmt them without problem — and in fact I uploaded my pot file again (this time without it needing review) and it worked just fine (have yet to do that with my po files, but might try).

I wonder what’s up :/ My files are the ljklient ones, if you want, take a peek.

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Данило Шеган (danilo) said :
#1

If the error message you are getting is something like 'X-Rosetta-Export-Date' missing, you should try uploading as 'Published upload', instead of using 'User upload'.

'User upload' is for translators doing changes to translations, and as a maintainer, you ought to be using 'Published'. This is also important so Launchpad can determine what translations to give priority to.

Alternative for you is to create a tarball in the form of:

   po/ljklient.pot
   po/hu.po
   po/fr.po
   po/de.po
   ...

and upload that using 'Upload a file' on https://translations.launchpad.net/ljklient/0.1.x/+pots/ljklient/, when it will be automatically recognised as 'published' and will work correctly.

Revision history for this message
Henrik Pauli (ralesk) said :
#2

All the error is “there was an error in the format” — meanwhile there was no error whatsoever, and since I’m trying to import my otherwise hand- and poedit- and xgettext generated files, which convert into .mo with msgfmt and poedit itself (no idea whether poedit uses something internal or if it invokes msgfmt) without any sign of error… there should be no rosetta header in there at all. I pretty much just want to fill up my empty pot with the already done translations so we don’t duplicate efforts, etc.

I’ll try published upload, but its description confused me (“Published upload— Select this if this upload is identical to the corresponding file in the upstream release or source package.”), I had assumed this is for software already managed by launchpad, and ljKlient barely is (we live on SourceForge and I’m only just trying to see if Rosetta will be of any good for us as a translation interface)

Revision history for this message
Henrik Pauli (ralesk) said :
#3

Danilo, the uploaded as Published files appear to report failure right now :/

Revision history for this message
Данило Шеган (danilo) said :
#4

Henrik, I can see failed imports for PO files, and testing this, I'd say the problem is with usage of 'msgctxt' keyword which is still unsupported in Launchpad.

Yes, this message is 'obsolete' (#~ comment), but it's still considered a real message in PO file. The solution would be to remove those messages from PO files, and try uploading again.

Eg. remove

#, fuzzy
#~ msgctxt "The shortcut for Edit Friends"
#~ msgid "Ctrl+F"
#~ msgstr "Ctrl+F"

from ljklient-hu.po.

We do plan to support msgctxt in the near future.

Can you help with this problem?

Provide an answer of your own, or ask Henrik Pauli for more information if necessary.

To post a message you must log in.