]> code.citadel.org Git - citadel.git/blobdiff - webcit/po/webcit/create-pot.sh
Revert "serv_rssclient.c: style update"
[citadel.git] / webcit / po / webcit / create-pot.sh
diff --git a/webcit/po/webcit/create-pot.sh b/webcit/po/webcit/create-pot.sh
new file mode 100755 (executable)
index 0000000..b3d942d
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+CSOURCES=`find ../.. -name \*.c`
+HSOURCES=`find ../.. -name \*.html`
+JSOURCES=`find ../.. -name \*.js`
+
+echo Updating webcit.pot from strings in the source code ...
+xgettext \
+       --copyright-holder='The Citadel Project - http://www.citadel.org' \
+        --from-code='utf-8' \
+       -k_ \
+       -o webcit.pot \
+       --add-comments \
+       $CSOURCES $HSOURCES
+
+for x in *.po
+do
+       echo Merging webcit.pot into $x ...
+       msgmerge $x webcit.pot -o $x
+done