summaryrefslogtreecommitdiffstats
path: root/doc/update_handbook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'doc/update_handbook.sh')
-rwxr-xr-xdoc/update_handbook.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/update_handbook.sh b/doc/update_handbook.sh
new file mode 100755
index 0000000..24210e6
--- /dev/null
+++ b/doc/update_handbook.sh
@@ -0,0 +1,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