#!/bin/sh
#
# Run this script in the top level directory to create the translated man pages:
#
# Once the TP module has been created, this command gets the latest po files:
# echo "Getting the latest translations from translationproject.org..."
# rsync -Lrtvz  translationproject.org::tp/latest/parted-man/  man
# rsync -Lrtvz  translationproject.org::tp/latest/parted-texi/  texi

# This threshold is the minumum percentage of translated strings per resulting
# document (not per po file). It defaults to 80 and can be screwed down for
# testing purposes, even to zero. But keep in mind, users doesn't really
# benefit from translations with less than 80%, so better keep the default.

threshold=0

po4a-translate -f man \
	       -o groff_code=verbatim \
	       -k ${threshold} \
	       -m 0.5.3-26/w3m/doc/w3m.1 \
	       -p doc-po/de.po \
	       -l de/man/w3m.1

po4a-translate -f man \
	       -o groff_code=verbatim \
	       -k ${threshold} \
	       -m 0.5.3-26/w3m/scripts/w3mman/w3mman.1.in \
	       -p doc-po/de.po \
	       -l de/man/w3mman.1.in


po2html -t jbr/FAQ_jbr_141208.html \
	doc-po/de.po \
	de/html/FAQ_jbr_141208.html
