Comment 4 for bug 452897

Revision history for this message
Francesco Fumanti (frafu) wrote :

Hi David,

First of all, thanks for your interest in onboard.

In the bug description you say: "The preferences dialog is not translatable due to its strings in the .ui file not being extracted and merged into the POT translation template."

Could you please tell me how launchpad gets the .pot file for its translations? Does it simply copy the file from the uploaded debian source package or does it generate a new .pot file from the debian source package?

If I remember correctly, the problem did not occur when I created the debian package from the checkout of the onboard repository and I might know why: the repository contains a POTFILES.in file specifying from what files it has to extract strings for the POT translation template.

Unfortunately, I was not aware that the "./setup. py sdist" command that I used to create the release tarball does not include the POTFILES.in file into the release tarball; consequently, when building the debian package by using the release tarball without using the langpack.mk command in debian/rules, it does not merge the strings from the settings.ui file into the template.

Do you think that it makes sense to file a bug against the DistUtilsExtra package because it does not include the POTFILES into the release tarball? Or is there any reason for not including the POTFILES into the release tarball? (Unfortunately, I don't have a good knowledge about these things.)