On Wed, Mar 04, 2009 at 09:42:32AM +0800, dongsheng.song(a)gmail.com wrote:
2009/3/3 Nicolas François <nicolas.francois(a)centraliens.net>:
>> 2. When I use option 'untranslated' , the po file no effect
>> PERLLIB=tools/po4a/lib/ tools/po4a/po4a-updatepo -M UTF-8 -f docbook
>> -o doctype='docbook' -o untranslated='<programlisting>
<screen>' \
>
> <programlisting> and <screen> are already in _default_translated
> and _default_placeholder.
> Can you try adding -o nodefault='<programlisting> <screen>'?
>
No, it does't work.
There should be now the warning I mentioned.
And the support for nodefault was fixed. Note that you will need to add
'<programlisting> <screen>' to the break list.
The options I recommend for your use case are:
-o nodefault='<programlisting> <screen> <replaceable>'
-o untranslated='<programlisting> <screen> <replaceable>'
-o break='<programlisting> <screen>'
-o inline='<replaceable>'
I also think you should use "-o includeexternal -m book.xml" instead of
adding all the files to your command line. This might be easier for later
maintenance.
This unfortunately require that you run po4a from the directory where
book.xml is.
Best Regards,
--
Nekral