summaryrefslogtreecommitdiff
path: root/resources/locale/gen-pot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'resources/locale/gen-pot.sh')
-rwxr-xr-xresources/locale/gen-pot.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/resources/locale/gen-pot.sh b/resources/locale/gen-pot.sh
new file mode 100755
index 0000000..65acff3
--- /dev/null
+++ b/resources/locale/gen-pot.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+# Searches trough all vala files of Gnome-Pie and generates
+# a gnomepie.pot for strings which need to be translated.
+
+filelist=$( find ../../src/ -name '*.vala' -printf "%h/%f " )
+
+domain="gnomepie"
+version="0.1"
+copyright="Simon Schneegans <simon.schneegans@uni-weimar.de>"
+
+xgettext --package-name $domain \
+ --package-version $version \
+ --default-domain $domain \
+ --output $domain.pot \
+ --copyright-holder="$copyright" \
+ -k_ \
+ -L C# \
+ $filelist
+
+sed --in-place $domain.pot --expression='s/CHARSET/UTF-8/'
+