1PODEBCONF-DISPLAY-PO(1)           po-debconf           PODEBCONF-DISPLAY-PO(1)
2
3
4

NAME

6       podebconf-display-po - display content of a PO file in a debconf
7       interface
8

SYNOPSIS

10       podebconf-display-po [-h] [-f FRONTEND] file.po
11

DESCRIPTION

13       As with any other localization work, translators should test their
14       translations by running the program they are working on.  But this is a
15       very hard job with complicated configuration scripts because there is
16       no automatic way to have all messages displayed.
17
18       The podebconf-display-po program could be called the Poor Man
19       Localization Checker for debconf.  It parses a PO file, tries to guess
20       what the original templates file did look like, and displays messages
21       in a debconf interface.
22
23       Of course being root is not mandatory, and there is no interaction
24       between podebconf-display-po and system-wide debconf settings.
25

OPTIONS

27       -h, --help
28           Display a usage summary and exit.
29
30       -f, --frontend=FRONTEND
31           Select an alternate debconf frontend.
32

CAVEATS

34       ·   As podebconf-display-po relies on "debconf" to display questions,
35           your environment must be setup to display localized questions in
36           the language of the PO file.  If you want to check a translation in
37           another language, you need to temporarily change your settings,
38           e.g.
39
40             $ LANGUAGE=de podebconf-display-po de.po
41
42           If the PO file cannot be converted into your current encoding,
43           English strings are displayed instead of the localized ones.  You
44           then have to switch to a UTF-8 environment to prevent encoding
45           mismatch.
46
47       ·   Prior to 0.8.3, "po-debconf" did only insert the field name in PO
48           files.  But some discussions on mailing-lists showed that text
49           format does depend on template type, e.g. string and boolean types
50           are different because the former is an open question and user has
51           to enter some text input, whereas the latter is basically a Yes/No
52           question.  Authors have to think about it when writing their
53           templates files, but translators also have to be aware.
54
55           This is achieved when PO files are generated by po-debconf >=
56           0.8.3, template type is inserted in PO files.  With older versions,
57           podebconf-display-po has a trivial algorithm to determine original
58           template type, and may sometimes be wrong.
59
60       ·   The "dialog" frontend, when based upon "whiptail", traps system
61           signals and thus podebconf-display-po cannot be interrupted by
62           "Ctrl-C" when using this frontend.
63

SEE ALSO

65       debconf(1)
66

AUTHOR

68         Denis Barbier <barbier@linuxfr.org>
69
70
71
72                                  2020-01-30           PODEBCONF-DISPLAY-PO(1)
Impressum