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.sh18
1 files changed, 15 insertions, 3 deletions
diff --git a/resources/locale/gen-pot.sh b/resources/locale/gen-pot.sh
index 356e12e..7b7f156 100755
--- a/resources/locale/gen-pot.sh
+++ b/resources/locale/gen-pot.sh
@@ -3,12 +3,21 @@
# 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.2"
+version="0.4"
copyright="Simon Schneegans <code@simonschneegans.de>"
+filelist=$( find ../ui/ -name '*.ui' -printf "%h/%f " )
+xgettext --package-name $domain \
+ --package-version $version \
+ --default-domain $domain \
+ --output $domain.pot.tmp \
+ --copyright-holder="$copyright" \
+ -k_ \
+ -L Glade \
+ $filelist
+
+filelist=$( find ../../src/ -name '*.vala' -printf "%h/%f " )
xgettext --package-name $domain \
--package-version $version \
--default-domain $domain \
@@ -17,6 +26,9 @@ xgettext --package-name $domain \
-k_ \
-L C# \
$filelist
+
+awk 'NR>18' $domain.pot.tmp >> $domain.pot
sed --in-place $domain.pot --expression='s/CHARSET/UTF-8/'
+rm $domain.pot.tmp