Multiple po templates

Asked by Jacek Sieka

Hello,
My project has two language template files, dcpp.pot and dcpp-win32.pot (one for a library shared with other projects and one for a win32 gui). We created a translation template by uploading dcpp-win32.pot and it seemed to be working, so we wanted to go ahead and upload the second template as well. I read here https://answers.launchpad.net/rosetta/+question/10724 that you distinguish templates by name so I went ahead and uploaded the second template, hoping that it would create a second translation template that people could translate. Instead, in the import queue I got "Will be imported into Template "dcpp-win32" in DC++ trunk", i e overwrite the first template. I tried changing the status of the queued item from "Needs review" to "deleted", but pressing "change status" resulted in "There was 1 error" and no further information.

This morning, the second template has been imported, overwriting the old template, and taking away the strings that were already translated for the old template, so now I have two questions:
1) Can I get the translations for the old template back (for example by now retrying the delete, since the old template is still visible in the import queue)? (Before I do that, I'd of course download the things for the second template that have already been translated...)

2) How can I make two templates available?

Thanks,
Jacek

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Jeroen T. Vermeulen
Solved:
Last query:
Last reply:
Revision history for this message
Best Jeroen T. Vermeulen (jtv) said :
#1

Thank you for the research you've done on this (bug 187410). It's also possible that one of us administrators simply made a mistake in tying template uploads to template names.

As for getting back your translations: AFAIK the ones for dcpp.pot should come back if you re-upload that template. For the renamed one it's harder, since the system sees no direct relationship between the one you uploaded as dcpp-win32.pot and its new incarnation.

If you export the dcpp.pot translations now, I believe those PO files should also contain the dcpp-win32 translations, but marked as obsolete. However it may be some trouble to extract them if you have other obsolete messages that were not from dcpp-win32. So I'd suggest re-uploading any translations of dcpp-win32 that you have as PO files, and this time they should be imported to the new template.

If you had any translations made in the web interface that weren't in the PO files, they will appear as suggestions in the translation UI.

Revision history for this message
Jacek Sieka (arnetheduck) said :
#2

Well, things seem in order now since I renamed dcpp.pot to libdcpp.pot - I'm somewhat reluctant to go back to dcpp.pot just to check if that would work (i e it was a human error), specially since I don't want to risk more work for the translators later on...

Revision history for this message
Jacek Sieka (arnetheduck) said :
#3

Thanks Jeroen T. Vermeulen, that solved my question.