1 Check-Script: po-debconf
2 Author: Denis Barbier <barbier@linuxfr.org>
6 Info: This looks for common mistakes in packages using po-debconf.
9 Tag: not-using-po-debconf
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
19 Tag: stray-translated-debconf-templates
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.
27 Tag: missing-potfiles-in
29 Info: The required file <tt>POTFILES.in</tt> is missing from
33 Tag: missing-file-from-potfiles-in
35 Info: A file listed in <tt>debian/po/POTFILES.in</tt> could not be found
36 in the source package.
39 Tag: missing-templates-pot
41 Info: The required file <tt>templates.pot</tt> is missing from
45 Tag: unknown-encoding-in-po-file
47 Info: Encoding must be declared in PO files. Otherwise, charset
48 conversions cannot be performed.
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
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.
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.
69 Tag: newer-debconf-templates
71 Info: debconf-updatepo has not been run since the last change to your
74 You should run debconf-updatepo whenever debconf templates files are
75 changed so that translators can be warned that their files are
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.
82 Tag: translated-default-field
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
90 _Default: English[ Default language name, but not translated]