[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#512210: lintian: [checks/po-debconf] Extend template check for updated strings



On Sun, 18 Jan 2009 10:22:09 -0800
Russ Allbery <rra@debian.org> wrote:

> Neil Williams <codehelp@debian.org> writes:
> 
> > debconf only ever asks the same question once - to be effective, that
> > question should be translated the very first time that question is
> > offered to the user. Translating it after the user has answered the
> > question in English is pointless - at least as far as that user is
> > concerned.
> >
> > So, I wonder if lintian could extend checks/po-debconf to raise an error
> > not only if any package contains a completely untranslated set of
> > templates but also check if a single question is untranslated even if
> > the rest of the templates have one or more translations.
> 
> I must be missing something -- why doesn't no-complete-debconf-translation
> catch that?  That's its intention as I understand it; in fact, it's even
> stricter than what you're proposing.  Is it just buggy?

Well that check only works on the source package and only uses msgfmt -
it could probably be improved with a check on the binaries and the
actual templates file(s).

In the original report, I only tested against the .deb. The
no-complete-debconf-translation check is not high enough severity to
show up without -I when checking the source package.

If the binary check is added, the certainty can be raised and also the
severity. With that change, the description could be made more strict:

Info: Even though this package provides debconf translation support,
there are either no translations or none of the translations are
complete. This will mean that users are expected to answer the new
question(s) exclusively in English. You should always call for
translations for any new strings before uploading new debconf
questions because debconf only asks any question once.

I'd like to see severity important but normal would be OK for starters.

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgpZdCj3FOntp.pgp
Description: PGP signature


Reply to: