Package: lintian
Version: 2.5.5

Hi,

I have spent a few hours looking at using po4a to allow tag descriptions
to be localized[0].  The results are available in the "tag-info-l10n"
branch in my personal git repository[1].

po4a does not yet have proper support for Debian control files, but
hopefully it will get that with the next upload (related bug #663148).
For now, I use an ad-hoc po4a plugin to parse the desc files.
  I suspect my ad-hoc plugin produces different po-files than the
"future" dctrl parser in po4a will.  Therefore, I do not think we should
accept translations/merge the branch just yet.  :)

Only the tag descriptions are translated.  The po files in the branch
include the Tag-field, but mainly because A) I rely the Tag-field for
"merging" the translation with the (remaining) tag data and B) I was too
lazy to do the relevant transformations in my prototype.


I only added support for translations in lintian-info (read: I was
lazy).  It can be tested by using lintian-info with the "new" --lang
argument:

"""
$ LINTIAN_ROOT=. frontend/lintian-info -t \
   package-depends-on-lower-priority-package
[... std text ...]
$ LINTIAN_ROOT=. frontend/lintian-info --lang da -t \
   package-depends-on-lower-priority-package
[...]
N:   Pakken afhænger af en pakke med lavere prioritet end den selv.
N:
N:   Bemærk: Dette tjek er begrænset til pakker lavet fra samme kilde
N:   pakke. Et fuldt tjek af pakke lavet fra andre kilde pakker [...]
N:   Lintian's kapacitet. Servicen depcheck gøre dette.
[...]
"""


Note that I only "translated" 3 or so strings (out of 961), so you will
want to pick one of those 3 tags for the test.  :)

The translated desc is not included in the branch, but can be generated
by running:

"""
$ debian/rules update-po
"""

It will give a lot of "discard $file" since most of them are below
po4a's (or gettext's?) ">= 80% translated" treshold.




~Niels

[0] http://lists.debian.org/debian-lint-maint/2010/08/msg00012.html

[1]
http://anonscm.debian.org/gitweb/?p=users/nthykier/lintian.git;a=shortlog;h=refs/heads/tag-info-l10n




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to