Added some code to peer into a data structure in Maemian/Schedule.pm. Also added the
[maemian] / nokia-lintian / checks / po-debconf.desc
1 Check-Script: po-debconf
2 Author: Denis Barbier <barbier@linuxfr.org>
3 Abbrev: pd
4 Type: source
5 Unpack-Level: 2
6 Info: This looks for common mistakes in packages using po-debconf.
7 Needs-Info: debfiles
8
9 Tag: not-using-po-debconf
10 Type: error
11 Info: This package seems to be using debconf templates, but it does not
12  use po-debconf to make translations possible (<tt>debian/po</tt> doesn't
13  exist).  Debian Policy requires that all packages using debconf use a
14  gettext-based translation system.  If this package uses one other than
15  po-debconf, please report this as a lintian bug along with how to detect
16  that system.
17 Ref: 3.9.1
18
19 Tag: stray-translated-debconf-templates
20 Type: warning
21 Info: This package contains a file named *templates.XX or
22  *templates.XX_XX.  This was the naming convention for the translated
23  templates merged using debconf-mergetemplate.  Since the package is using
24  po-debconf, these files should be replaced by language-specific files in
25  the <tt>debian/po</tt> directory and should no longer be needed.
26
27 Tag: missing-potfiles-in
28 Type: warning
29 Info: The required file <tt>POTFILES.in</tt> is missing from
30  <tt>debian/po</tt>.
31 Ref: po-debconf(7)
32
33 Tag: missing-file-from-potfiles-in
34 Type: warning
35 Info: A file listed in <tt>debian/po/POTFILES.in</tt> could not be found
36  in the source package.
37 Ref: po-debconf(7)
38
39 Tag: missing-templates-pot
40 Type: warning
41 Info: The required file <tt>templates.pot</tt> is missing from
42  <tt>debian/po</tt>.
43 Ref: po-debconf(7)
44
45 Tag: unknown-encoding-in-po-file
46 Type: warning
47 Info: Encoding must be declared in PO files. Otherwise, charset
48  conversions cannot be performed.
49
50 Tag: invalid-po-file
51 Type: warning
52 Info: Errors were found in the listed PO file that will cause its content
53  to be discarded. Run <tt>msgfmt</tt> on the file to see the error
54  messages.
55
56 Tag: misnamed-po-file
57 Type: warning
58 Info: The name of this PO file doesn't appear to be a valid language
59  code.  Any files in <tt>debian/po</tt> ending in <tt>.po</tt> will be
60  processed as translations by po2debconf for the language code equal to
61  the file name without the trailing <tt>.po</tt>.  If the file name does
62  not correct reflect the language of the translation, the translation will
63  not be accessible to users of that language.
64  .
65  If this file isn't actually a PO file, rename it to something that
66  doesn't end in <tt>.po</tt> or move it to another directory so that
67  translation merging programs will not be confused.
68
69 Tag: newer-debconf-templates
70 Type: warning
71 Info: debconf-updatepo has not been run since the last change to your
72  debconf templates.
73  .
74  You should run debconf-updatepo whenever debconf templates files are
75  changed so that translators can be warned that their files are
76  outdated.
77  .
78  This can be ensured by running debconf-updatepo in the 'clean' target
79  of <tt>debian/rules</tt>. PO files will then always be up-to-date when
80  building the source package.
81
82 Tag: translated-default-field
83 Type: warning
84 Info: You should not mark as translatable "Default:" or "DefaultChoice:"
85  fields, unless explicitly needed (e.g. default country, default language,
86  etc.).  If this Default field really should be translated, you should
87  explain translators how they should translate it by using brackets.  For
88  example:
89  .
90    _Default: English[ Default language name, but not translated]
91 Ref: po-debconf(7)