Comment 2 for bug 286043

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Action was delayed because the tarball arrived too late in the night for me, and still contained the "#~|" lines. The upload was complicated by the fact that KDE bundles its translations by language, not by source package. Our upload approver has some special-casing for the KDE language packs to find the appropriate package and template for each translation file, and derive its language form the package name instead of the filename.

Unfortunately distro package translations must be uploaded to the package holding the actual template, and in fact to the right template. Since the KDE language pack packages do not hold the actual templates, we can't upload the tarballs to there in their original form. This means that the approver's special logic for KDE tarballs can't be used, and must be reproduced client-side.

Thus after finding the right packages and templates, the PO files must also be named differently (after the language codes, not after the template) for the auto-approver to understand what language they're in. I developed a script to unpack the tarballs, strip out the bad lines, decode KDE language codes, rename the translation files, tar them up by template instead of by language, help figure out what package each template is actually in, and upload the tarballs to the right places.

The script has been run and the files are now importing. Luckily our partition of templates across packages mostly matches that of upstream.