summaryrefslogtreecommitdiff
path: root/resources/locale/gen-pot.sh
diff options
context:
space:
mode:
authorAlessandro Ghedini <al3xbio@gmail.com>2012-01-21 19:07:09 +0100
committerAlessandro Ghedini <al3xbio@gmail.com>2012-01-21 19:07:09 +0100
commit60560a030fda3c539ff9dc1563b9926414a193da (patch)
tree77590b395685a8d48d3615e45629a1610d08c071 /resources/locale/gen-pot.sh
parentd6b2677825cbb423e2099563c16321c3e23d7899 (diff)
Imported Upstream version 0.4.0upstream/0.4.0
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