155 lines
4.1 KiB
HTML
155 lines
4.1 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of PODEBCONF-DISPLAY-PO</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>PODEBCONF-DISPLAY-PO</H1>
|
|
Section: po-debconf (1)<BR>Updated: 2018-11-20<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
podebconf-display-po - display content of a PO file in a debconf interface
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
|
|
|
<B>podebconf-display-po</B>
|
|
[<B>-h</B>]
|
|
[<B>-f</B> <I></I><FONT SIZE="-1"><I>FRONTEND</I></FONT><I></I>]
|
|
<I>file.po</I>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
|
|
|
As with any other localization work, translators should test their
|
|
translations by running the program they are working on. But this
|
|
is a very hard job with complicated configuration scripts because
|
|
there is no automatic way to have all messages displayed.
|
|
<P>
|
|
|
|
The <B>podebconf-display-po</B> program could be called the
|
|
<I>Poor Man Localization Checker</I> for debconf. It parses a <FONT SIZE="-1">PO</FONT> file,
|
|
tries to guess what the original templates file did look like, and
|
|
displays messages in a debconf interface.
|
|
<P>
|
|
|
|
Of course being root is not mandatory, and there is no interaction
|
|
between <B>podebconf-display-po</B> and system-wide debconf settings.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-h</B>, <B>--help</B><DD>
|
|
|
|
|
|
Display a usage summary and exit.
|
|
<DT id="2"><B>-f</B>, <B>--frontend=</B><FONT SIZE="-1">FRONTEND</FONT><B></B><DD>
|
|
|
|
|
|
Select an alternate debconf frontend.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>CAVEATS</H2>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="3">•<DD>
|
|
As <B>podebconf-display-po</B> relies on <TT>"debconf"</TT> to display questions,
|
|
your environment must be setup to display localized questions in the
|
|
language of the <FONT SIZE="-1">PO</FONT> file.
|
|
If you want to check a translation in another language, you need to
|
|
temporarily change your settings, e.g.
|
|
|
|
|
|
<P>
|
|
|
|
|
|
|
|
|
|
<PRE>
|
|
$ LANGUAGE=de podebconf-display-po de.po
|
|
|
|
</PRE>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
|
|
|
|
If the <FONT SIZE="-1">PO</FONT> file cannot be converted into your current encoding, English
|
|
strings are displayed instead of the localized ones. You then have
|
|
to switch to a <FONT SIZE="-1">UTF-8</FONT> environment to prevent encoding mismatch.
|
|
<DT id="4">•<DD>
|
|
Prior to 0.8.3, <TT>"po-debconf"</TT> did only insert the field name in <FONT SIZE="-1">PO</FONT>
|
|
files. But some discussions on mailing-lists showed that text
|
|
format does depend on template type, e.g. string and boolean types
|
|
are different because the former is an open question and user has
|
|
to enter some text input, whereas the latter is basically a Yes/No
|
|
question. Authors have to think about it when writing their templates
|
|
files, but translators also have to be aware.
|
|
|
|
|
|
<P>
|
|
|
|
|
|
This is achieved when <FONT SIZE="-1">PO</FONT> files are generated by po-debconf >= 0.8.3,
|
|
template type is inserted in <FONT SIZE="-1">PO</FONT> files. With older versions,
|
|
<B>podebconf-display-po</B> has a trivial algorithm to determine original
|
|
template type, and may sometimes be wrong.
|
|
<DT id="5">•<DD>
|
|
The <TT>"dialog"</TT> frontend, when based upon <TT>"whiptail"</TT>, traps system
|
|
signals and thus <B>podebconf-display-po</B> cannot be interrupted by <TT>"Ctrl-C"</TT>
|
|
when using this frontend.
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+debconf">debconf</A></B>(1)
|
|
<A NAME="lbAH"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
|
|
|
|
|
|
|
|
<PRE>
|
|
Denis Barbier <<A HREF="mailto:barbier@linuxfr.org">barbier@linuxfr.org</A>>
|
|
|
|
</PRE>
|
|
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="6"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="7"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="8"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="9"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="10"><A HREF="#lbAF">CAVEATS</A><DD>
|
|
<DT id="11"><A HREF="#lbAG">SEE ALSO</A><DD>
|
|
<DT id="12"><A HREF="#lbAH">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:24 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|