Quantcast
Channel: The Battle for Wesnoth Forums
Viewing all articles
Browse latest Browse all 1980

Translations & Internationalization • Re: po files parsing

$
0
0
Assuming Debian or Ubuntu, this should generate the manual's HTML file to open in a browser:

Code:

/usr/bin/po4a-translate -f docbook -L utf8 -m doc/manual/manual.en.xml -p po/wesnoth-manual/ar.po -l doc/manual/manual.ar.xml --keep 0/usr/bin/xsltproc --nonet --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0 --stringparam html.stylesheet ./styles/manual.css /etc/asciidoc/docbook-xsl/xhtml.xsl doc/manual/manual.ar.xml > doc/manual/manual.ar.html
If you have a full build environment, scons update-po4a should run that, although it will run it without the --keep 0, which means that it will only generate the HTML file for languages that are a certain amount translated, by default 80%.

Statistics: Posted by octalot — Yesterday, 6:31 pm



Viewing all articles
Browse latest Browse all 1980

Trending Articles