Denis Barbier wrote: > I am not familiar with those tools. but I had a look. > As .desc files are rfc822 compliant, I used debconf-gettextize to > generate PO files (tested with German file from Grisu's site). In this > very particular case, having 2 po directories makes sense, so these files > should go under e.g. po.tasks. > > They can be compiled into .mo files and installed with another > textdomain, say 'tasksel-tasks'. Aptitude and friends could then use > dgettext(3) to retrieve translated descriptions. That sounds feasable. > After PO files are generated, debconf-updatepo can be used to update PO > files. There is a problem, this program does not work with #-comments, > so tasksel should ship a slightly modified version of this script. > Or I could patch debconf-updatepo if you (Joey Hess) want to allow those > comments in debconf templates files (of course po2debconf will then > remove these comments) too. As debconf-updatepo is mostly a wrapper > around intltool-update, I believe that the former is the best solution. Maybe you were looking at the wrong files. There are no comments in the debian-tasks.desc file, as they're stripped out when it's generated. That's the file that needs to be translated. Yes, it's rfc-822, and the translatable fields are Description and Task. > Ddtp translations are by essence moving, so I am reluctant to provide the > generated PO files now, but the German file is available at > http://people.debian.org/~barbier/i18n/tasksel.de.po > for testing purpose. > > If this approach looks reasonable to everyone, next steps are: > a. Let the tasksel maintainer decide of a textdomain debian-tasks sounds about right to me. Or rather, I think the domain should match the name of the file in /usr/share/tasksel which aptitude or tasksel got the data from. There's a possibility that they may read more than one file in some customised versions of debian, and I only want to leave that option open. > b. Patch all tools printing tasksel descriptions to call > dgettext(textdomain, msgid) > c. Patch debconf-updatepo or let tasksel provide its own script, which > does not complain about #-comments. > d. Let the ddts provide PO files > e. Get PO files into tasksel and install .mo files > All these steps are fairly easy. I'd be happy for any help with b and e. My time for tasksel is limited right now. -- see shy jo
Attachment:
pgp7yUhZ4SR0W.pgp
Description: PGP signature