summaryrefslogtreecommitdiff
path: root/tools/update-po
diff options
context:
space:
mode:
authorAndreas Mair <amair.sob@googlemail.com>2006-02-06 15:54:49 +0100
committerAndreas Mair <amair.sob@googlemail.com>2006-02-06 15:54:49 +0100
commit241fa247256050d545d0d4024f260012c20c498d (patch)
tree73d0fb27955a44cf4980d7dc04b2cbd2bf7c091a /tools/update-po
parent34e86d2c14b20da21febb89614bbeb4522b481ef (diff)
downloadvdradmin-am-3.4.3rc2.tar.gz
vdradmin-am-3.4.3rc2.tar.bz2
2006-02-06: 3.4.3rc2v3.4.3rc2
- For timers that are checked by AutoTimer for start/stop times the broadcast's length must at least match 90% of the original timer's length (excluding before/behind buffers). - Reworked detection of already programmed AutoTimers and made it compatible to VDR v1.3.23+ (Based on suggestions by Jouni Karvo). - Don't crash if illegal characters are used for searching (Reported by foobar42). - Fixed error after progamming a timer if VDRAdmin is accessed through apache (Reported by speed). - If there were quotes in an AutoTimer's pattern and you clicked "test" the pattern got cleared (Reported by The_Pit).
Diffstat (limited to 'tools/update-po')
-rwxr-xr-xtools/update-po21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/update-po b/tools/update-po
new file mode 100755
index 0000000..0aebd31
--- /dev/null
+++ b/tools/update-po
@@ -0,0 +1,21 @@
+#!/bin/sh -e
+
+pushd po/
+../tools/tmplgettext "^.*\.html$" ../template >tmp-html-x.pot
+msguniq tmp-html-x.pot >vdradmin.pot
+
+xgettext --from-code=ISO-8859-1 -L Perl ../vdradmind.pl -j -o vdradmin.pot
+#xgettext --from-code=ISO-8859-1 -L Perl ../template/i18n.pl -j -o vdradmin.pot
+rm tmp-*.pot
+popd
+
+
+for LANG in de es fi fr nl ; do
+ echo -n "$LANG: "
+ if msgmerge po/$LANG.po po/vdradmin.pot >temp.po ; then
+ mv -f temp.po po/$LANG.po
+ echo " untranslated=$(msgattrib --untranslated po/$LANG.po | grep ^msgid | wc -l) fuzzy=$(msgattrib --fuzzy po/$LANG.po | grep ^msgid | wc -l)"
+ else
+ echo "error merging po/$LANG.po and po/vdradmin.pot"
+ fi
+done