Red Hat Bugzilla – Bug 1032752
Uploading translations in Zanata fails
Last modified: 2014-05-11 17:03:38 EDT
Description of problem:
I have made some changes in my early translation of the User's Guide of Publican. When I try uploading the modified files, Zanata fails with the message:
JBWEB000065: HTTP Status 500 - An error occurred while uploading the file : Invalid PO file contents on file: pot/Adding_Code_Samples
JBWEB000309: type JBWEB000067: Status report
JBWEB000068: message An error occurred while uploading the file : Invalid PO file contents on file: pot/Adding_Code_Samples
JBWEB000069: description JBWEB000145: The server encountered an internal error that prevented it from fulfilling this request.
The po file is valid. Publican (v2 or v3) builds the html file on my desktop.
With the previous version of Zanata, all was working fine.
I don't know if the concern is in Zanata or in Publican?
Besides, setting up the possibility of downloading all the files (zip format) would be useful.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Hi Gé -- can you please tell me the command you used to upload your translations?
The lines you've pasted there indicate that the Zanata client is trying to upload a POT file, not a translation.
(In reply to Ruediger Landmann from comment #2)
"-- can you please tell me the command you used to upload your
I translate offline. I download files for translation either by git or (with the earlier version of Zanata) clicking on the name of the document in the list of files (don't work: presently directs to the online translation).
When the translation is done, I upload. I click on the small icon of the Actions column. There a popup window ask me the name and localization of the file on my computer. Then I click the button Upload.
URL of the page is (for me):
A typical line looks like:
Statistic: (here translation's statistics histogram followed by percentage) 100%
Remaining hours: 0 (?)
Last Upload: 08/03/13 04:38 by rlandmann
Last Translated: 29/08/13 23:47 by geodebay
Actions: (here a little icon with a tooltip: "Upload document to merge/override translation")
It is this icon I use (I was using) for uploading my translation.
"The lines you've pasted there indicate that the Zanata client is trying to
upload a POT file, not a translation."
Yes, I presume, but the column Path cannot be modified in "po"
Thanks Gé -- so, can I please confirm that:
1. when you click File Upload > Browse you're going to the directory in which you've saved your French translation and not the empty PO files? Sorry for the obvious question, but when I click File Upload > Browse, I'm taken to a directory of POT files instead...
2. The files you've translated have the .po extension, not .pot?
(In reply to Ruediger Landmann from comment #4)
> Thanks Gé -- so, can I please confirm that:
> 1. when you click File Upload > Browse you're going to the directory in
> which you've saved your French translation and not the empty PO files?
The directory is not empty. It contains the translated po files.
To proofread my work, I use publican build and so, I see the result on Firefox.
> for the obvious question, but when I click File Upload > Browse, I'm taken
> to a directory of POT files instead...
Yes, but when you browse you can go everywhere. The button opens Nautilus on my computer.
> 2. The files you've translated have the .po extension, not .pot?
Yes, .po extension.
The po file (for the first line: Adding_Code_Samples.po) is not too big, so I join it.
This process was working fine with the previous version of Zanata.
Hi Gé, I recently made some changes to the zanata settings for the PUG. Let us know if it starts or stops working for you.
Hi Gé, I've had a chat with the Zanata devs and reimported the translation using the correct zanata-cli options.
Hi Jeff, I restart working with Zanata on the translation of Publican User Guide. To day, it works fine and I can upload my work.