On Sun, Aug 10, 2008 at 11:00:36PM +0200, Javier Fernandez-Sanguino Pen~a wrote:
> Package: po4a
> Version: 0.33.3-1
> Severity: normal
> 
> I'm trying to use po4a-gettetize to convert Nmap's Docbook-XML manual page

I try to convert the Subversion book into PO format ...

> its painfully difficult mainly because there are many '<option>' tags
> inline and that 
> 
> a) makes the po4a-gettextize process not work properly
> 
> b) converts the XML file into many msgids which will be very difficult
> to handle

I fully agree with this bug report. This is probably also the reason why
the Debian installation guide doesn't use po4a (translations_po.txt
in installers svn: "We have chosen poxml as that gives better context
(it does not split paragraphs) for translation.").

> I think that the <option> tags should be moved over to the list of
> 'inline' tags, I do not know the impact this might have in other
> documents, however.
> 
> Proposed patch:

This patch works really fine. But why doesn't it work without this patch
using options? I carefully studied the man page of Locale::Po4a::Xml and the
following should work:

po4a-updatepo -f docbook --master-charset=UTF-8 \
  -m ../en/book/ch09-reference.xml -p de.po --previous \
  -o doctype="book" \
  -o nodefault="<option>" -o inline="<option>"

(Called from within a working copy of
http://svn.red-bean.com/svnbook/trunk/src/de/)

Nevertheless I get:
# type: Content of: <chapter><sect1><para><footnote><para>
#: ../en/book/ch09-reference.xml:21
msgid "Well, you don't need a subcommand to use the"
msgstr ""

# type: Content of: <chapter><sect1><para><footnote><para>
#: ../en/book/ch09-reference.xml:22
msgid "option, but we'll get to that in just a minute."
msgstr ""

which cannot be used as a sentence is split into two msgids.

Also an additional -o translated="<option>" (or/and ommitting
-o nodefault="<option>") seems not to help! I'm lost.

Jens



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to