[Po4a-devel]Re: [Po4a-commits] po4a/debian changelog,1.133,1.134

Jordi Vilalta jvprat@wanadoo.es
Fri, 28 Jan 2005 23:47:24 +0100 (CET)


Hi,

On Fri, 28 Jan 2005, Denis Barbier wrote:
> On Fri, Jan 28, 2005 at 09:39:04PM +0000, Jordi Vilalta wrote:
>> Update of /cvsroot/po4a/po4a/debian
>> In directory haydn:/tmp/cvs-serv6115/debian
>>
>> Modified Files:
>> 	changelog
>> Log Message:
>> Fix the reported d-i's manual issues in Xml.pm
>
> Many thanks, Jordi, that works!

:) You're welcome

> If you look at the end of the PO file generated with
> 1_en_boot-installer_i386.xml, you see
>  "is passing the "
>  msgstr ""
>
>  # type: Content of: <sect2><para><userinput>
>  #: 1_en_boot-installer_i386.xml:323
>  #, no-wrap
>  msgid "debian-installer/probe/usb=false"
>  msgstr ""
>
>  # type: Content of: <sect2><para>
>  #: 1_en_boot-installer_i386.xml:323
>  #, no-wrap
>  msgid ""
>  " parameter\n"
>  "at the boot prompt, which will prevent the modules from being loaded.\n"
>  "\n"
>  msgstr ""
>
> Obviously the last 3 msgids should be merged into a single one, can you
> please explain how to customize the XML module to change how tags are
> interpreted?  Here I would like to change <userinput> definition to have
> it inlined.

If you use it from the command line, you should only add the option:
   -o inline "<userinput> <other_inline_tags>"

If you want to do a customized module with all the document format 
options, you can take Dia.pm as a base, and add in the initialize function:

   $self->{options}{'inline'}.=' <userinput> <other_inline_tags>';

I hope it helps :)

Also... are you using the wrap option? (I think no, because there are lots 
of \n's in the bug report po files) It would clean up the strings.

Regards,

Jordi Vilalta