summaryrefslogtreecommitdiffstats
path: root/doc/misc/update_handbook.sh
blob: 24210e6bbc993f9798fb96c8b3c5f6036d8cb0a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
LANGS="de fr sv"

echo -n "update pot..."
xml2pot en/index.docbook > en/handbook.pot
echo " done."

for lang in $LANGS; do
        echo -n "updating $lang..."
	mv $lang/handbook.po $lang/handbook_old.po
	msgmerge -o $lang/handbook.po $lang/handbook_old.po en/handbook.pot
	rm $lang/handbook_old.po
        po2xml en/index.docbook $lang/handbook.po > $lang/index.docbook
        echo " done."
done