]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - sarg-php/update-po.sh
May fix some errors in sarg-php
[thirdparty/sarg.git] / sarg-php / update-po.sh
diff --git a/sarg-php/update-po.sh b/sarg-php/update-po.sh
new file mode 100644 (file)
index 0000000..81fb42a
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# quick and non portable hack to update the po files from bash
+xgettext -o translate.this *.php
+for f in locale/*/LC_MESSAGES/messages.po
+do
+       echo "Updating $f"
+       msgmerge --update "$f" translate.this 
+done