diff options
author | Alessandro Ghedini <al3xbio@gmail.com> | 2011-10-19 10:56:04 +0200 |
---|---|---|
committer | Alessandro Ghedini <al3xbio@gmail.com> | 2011-10-19 10:56:04 +0200 |
commit | 6451a495637c6e3047a5a56573cffc6e3de9a515 (patch) | |
tree | 7c3eb29532e7c4b36a9da13c5890664fb816959b /resources/locale/gen-pot.sh |
Imported Upstream version 0.2+gitdfdad95upstream/0.2+gitdfdad95
Diffstat (limited to 'resources/locale/gen-pot.sh')
-rwxr-xr-x | resources/locale/gen-pot.sh | 22 |
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/' + |