.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "PO2DEBCONF 1" .TH PO2DEBCONF 1 "2018-11-20" "" "po-debconf" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" po2debconf \- merge master templates file and PO files .SH "SYNOPSIS" .IX Header "SYNOPSIS" \&\fBpo2debconf\fR [\fB\-v\fR] [\fB\-h\fR] [\fB\-\-podir=\f(BI\s-1DIR\s0\fB\fR] [\fB\-o \f(BI\s-1FILE\s0\fB\fR] [\fB\-e \f(BI\s-1STRING\s0\fB\fR] \&\fImaster\fR .SH "DESCRIPTION" .IX Header "DESCRIPTION" This program reads all \s-1PO\s0 files and a single \fItemplates\fR file, and produces a Debconf templates file containing all translations, similar to the one produced by \fBdebconf\-mergetemplate\fR\|(1) (from the \&\f(CW\*(C`debconf\-utils\*(C'\fR package). \s-1PO\s0 files are by default searched in the \&\fIpo\fR subdirectory below the location of the master file. .PP To help the language code transition for Norwegian Bokmål, the \&\fBno\fR and \fBnb\fR language codes are handled specially. If \fIno.po\fR exists, it should be renamed to \fInb.po\fR. Using \fInb.po\fR will make both \f(CW\*(C`\-no\*(C'\fR and \f(CW\*(C`\-nb\*(C'\fR translations available in the templates file. .PP Lines beginning with a number sign (\f(CW\*(C`#\*(C'\fR) are comments in templates files. They are useful to give hints to translators, and are discarded by \fBpo2debconf\fR. Special comments have been introduced in \f(CW\*(C`po\-debconf\*(C'\fR 1.0. They are in the form \f(CW\*(C`#flag:\f(CIdirective\f(CW\*(C'\fR. The \f(CW\*(C`#flag:partial\*(C'\fR is the only directive interpreted by \fBpo2debconf\fR. Normally when a field is composed of several paragraphs (like \f(CW\*(C`_\|_Choices\*(C'\fR and \f(CW\*(C`_Description\*(C'\fR), it is translated if all paragraphs are translated. When a field contains \f(CW\*(C`#flag:partial\*(C'\fR, translated strings may be mixed with untranslated strings. .SH "OPTIONS" .IX Header "OPTIONS" .IP "\fB\-h\fR, \fB\-\-help\fR" 4 .IX Item "-h, --help" Display a usage summary and exit. .IP "\fB\-v\fR, \fB\-\-verbose\fR" 4 .IX Item "-v, --verbose" Process in verbose mode. .IP "\fB\-\-podir=\f(BI\s-1DIR\s0\fB\fR" 4 .IX Item "--podir=DIR" Set directory for \s-1PO\s0 files. Default is to search \s-1PO\s0 files in the \fIpo\fR subdirectory below the location of the master file. .IP "\fB\-o\fR, \fB\-\-output=\f(BI\s-1FILE\s0\fB\fR" 4 .IX Item "-o, --output=FILE" Set output filename (default is standard output). .IP "\fB\-e\fR, \fB\-\-encoding=\f(BI\s-1STRING\s0\fB\fR" 4 .IX Item "-e, --encoding=STRING" Convert encoding. Argument can take 3 values: \f(CW\*(C`utf8\*(C'\fR (convert to \&\s-1UTF\-8\s0), \f(CW\*(C`po\*(C'\fR (do not change encoding) and \f(CW\*(C`popular\*(C'\fR (convert encoding of input files depending on their language; the \&\f(CW\*(C`PODEBCONF_ENCODINGS\*(C'\fR environment variable must point to a name of a file containing the encoding map). .Sp Such a filename looks like: .Sp .Vb 7 \& # \& # Number is comment sign \& # \& cs ISO\-8859\-2 \& da ISO\-8859\-1 \& de ISO\-8859\-1 \& el ISO\-8859\-7 .Ve .Sp etc. .Sp Default encoding used to be \f(CW\*(C`popular\*(C'\fR, and has been switched to \f(CW\*(C`utf8\*(C'\fR since po-debconf 0.9.0. .SH "OUTPUT FORMAT" .IX Header "OUTPUT FORMAT" Since debconf 1.2.0, templates format has changed, encoding is part of field names, i.e. they are \f(CW\*(C`foo\-\f(CIlang\f(CW.\f(CIencoding\f(CW\*(C'\fR. When older debconf encounter such fields, they are silently ignored, which means that original text is displayed. .PP If present, a \fIpo/output\fR file can override defaults for encoding and output format. It contains a single line with two fields. The first field is the output format (currently valid values are 1 for fields in the form \f(CW\*(C`foo\-\f(CIlang\f(CW\*(C'\fR, and 2 for \f(CW\*(C`foo\-\f(CIlang\f(CW.\f(CIencoding\f(CW\*(C'\fR) and the second field is the encoding, e.g. .PP .Vb 1 \& echo \*(Aq2 utf8\*(Aq > po/output .Ve .PP let \fBpo2debconf\fR convert text to \s-1UTF\-8.\s0 .PP When encoding is set to \f(CW\*(C`po\*(C'\fR or \f(CW\*(C`utf8\*(C'\fR, output format is always set to 2, so that older debconf do not try to display text with wrong encodings. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBdebconf\-gettextize\fR\|(1), \&\fBdebconf\-updatepo\fR\|(1), \&\fBpo\-debconf\fR\|(7). .SH "AUTHOR" .IX Header "AUTHOR" .Vb 1 \& Denis Barbier .Ve