xml2po --version (return code: 0)
0.20.10
xml2po --help (return code: 0)
Usage: /usr/bin/xml2po [OPTIONS] [XMLFILE]...
OPTIONS may be some of:
-a --automatic-tags Automatically decides if tags are to be considered
"final" or not
-k --keep-entities Don't expand entities
-e --expand-all-entities Expand ALL entities (including SYSTEM ones)
-m --mode=TYPE Treat tags as type TYPE (default: docbook)
-o --output=FILE Print resulting text (XML or POT) to FILE
-p --po-file=FILE Specify PO file containing translation, and merge
-r --reuse=FILE Specify translated XML file with the same structure
-t --translation=FILE Specify MO file containing translation, and merge
-u --update-translation=LANG.po Updates a PO file using msgmerge program
-l --language=LANG Set language of the translation to LANG
--mark-untranslated Set 'xml:lang="C"' on untranslated tags
-v --version Output version of the xml2po program
-h --help Output this message
EXAMPLES:
To create a POTemplate book.pot from input files chapter1.xml and
chapter2.xml, run the following:
/usr/bin/xml2po -o book.pot chapter1.xml chapter2.xml
After translating book.pot into de.po, merge the translations back,
using -p option for each XML file:
/usr/bin/xml2po -p de.po chapter1.xml > chapter1.de.xml
/usr/bin/xml2po -p de.po chapter2.xml > chapter2.de.xml