source: installer/resources/poupdate-man.sh @ 9ab55ec

Last change on this file since 9ab55ec was 9ab55ec, checked in by zzz <zzz@…>, 4 years ago

checklist update

  • Property mode set to 100755
File size: 709 bytes
Line 
1#!/bin/sh
2#
3# Generate translated man pages from the po files.
4#
5# can't get po4a to do this
6#
7# NOTE:
8# For new translations, add the file names to debian/i2p.manpages and/or debian/i2p-router.manpages.
9# Don't forget to check in those files and .tx/config .
10# Don't forget to mtn add and check in new files in man/ and locale-man/ .
11#
12cd `dirname $0`
13for i in eepget i2prouter i2prouter-nowrapper
14do
15        for f in locale-man/man_*.po
16        do
17                j=${f%.po}
18                j=${j#locale-man/man_}
19                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
20                if [ $? -ne 0 ]
21                then
22                        echo "********* FAILED TRANSLATE FOR $j $i *************"
23                        FAIL=1
24                fi
25        done
26done
27exit $FAIL
Note: See TracBrowser for help on using the repository browser.