1DEBCONF-GETLANG(1) Debconf DEBCONF-GETLANG(1)
2
3
4
6 debconf-getlang - extract a language from a templates file
7
9 debconf-getlang lang master [translation]
10 debconf-getlang --stats master translation [...]
11
13 Note: This utility is deprecated; you should switch to using the po-
14 debconf package.
15
16 This program helps make and manage translations of debconf templates.
17 There are basically three situations in which this program might be
18 called:
19
20 A translation is just being started.
21 You want to provide the translator with a file they can work on
22 that has the English fields from your templates file, plus blank
23 Field-ll fields for the target language that they can fill in.
24
25 To do this, run the program with first parameter being the code for
26 the language that is being translated to, and the second parameter
27 being the filename of the English templates file.
28
29 A translation is well under way.
30 You have changed some English text, or added more items to your
31 templates file, and you want to send the translators a file with
32 the English text plus their current translations (or you are the
33 translator, and you want to generate such a file for your own use).
34
35 To accomplish this, run the program with the first parameter being
36 the the code for the language that is being translated to, the
37 second parameter being the filename of the master English templates
38 file, and the third parameter being the filename of the current
39 translated file.
40
41 When run this way, the program is smart enough to notice fuzzy
42 translations. For example a fuzzy Description will be output as
43 Description-<lang>-fuzzy, and a new, blank Description-<lang> will
44 be added. Translators should remove the -fuzzy fields as they
45 correct the fuzzy translations.
46
47 Checking the status of a translation
48 To check the status of a translation, use the --status flag, and
49 pass the english template file as the first parameter, and all the
50 other translated templates after that. It will output statistics
51 for each of them. For example:
52
53 debconf-getlang --stats debian/templates debian/templates.*
54
56 Note that the text in the generated templates may be word-wrapped by
57 debconf.
58
60 debconf-mergetemplate(1)
61
63 Joey Hess <joeyh@debian.org>
64
65
66
67 2020-01-28 DEBCONF-GETLANG(1)