2017-01-27 16:10:00 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2017-02-05 14:16:33 +00:00
|
|
|
# Generate translated man pages from the po files.
|
|
|
|
#
|
2017-01-27 16:10:00 +00:00
|
|
|
# can't get po4a to do this
|
|
|
|
#
|
2017-02-05 14:16:33 +00:00
|
|
|
# NOTE:
|
|
|
|
# For new translations, add the file names to debian/i2p.manpages and/or debian/i2p-router.manpages.
|
|
|
|
# Don't forget to check in those files and .tx/config .
|
|
|
|
# Don't forget to mtn add and check in new files in man/ and locale-man/ .
|
|
|
|
#
|
2017-02-05 14:56:51 +00:00
|
|
|
cd `dirname $0`
|
2017-01-27 19:15:32 +00:00
|
|
|
for i in eepget i2prouter i2prouter-nowrapper
|
2017-01-27 16:10:00 +00:00
|
|
|
do
|
2017-02-05 14:16:33 +00:00
|
|
|
for f in locale-man/man_*.po
|
2017-01-27 16:10:00 +00:00
|
|
|
do
|
2017-02-05 14:16:33 +00:00
|
|
|
j=${f%.po}
|
|
|
|
j=${j#locale-man/man_}
|
2017-01-27 19:15:32 +00:00
|
|
|
po4a-translate -f man -m man/$i.1 -p locale-man/man_$j.po -l man/$i.$j.1 -L UTF-8 -M UTF-8 -k 10 -v -d
|
2017-02-05 14:16:33 +00:00
|
|
|
if [ $? -ne 0 ]
|
|
|
|
then
|
|
|
|
echo "********* FAILED TRANSLATE FOR $j $i *************"
|
|
|
|
FAIL=1
|
|
|
|
fi
|
2017-01-27 16:10:00 +00:00
|
|
|
done
|
|
|
|
done
|
2017-02-05 14:16:33 +00:00
|
|
|
exit $FAIL
|