diff options
author | Alessandro Ghedini <al3xbio@gmail.com> | 2012-01-21 19:14:06 +0100 |
---|---|---|
committer | Alessandro Ghedini <al3xbio@gmail.com> | 2012-01-21 19:19:46 +0100 |
commit | c05883f47c498be4e11893e5178c5bc37ffd9f4a (patch) | |
tree | dbd3cd7ad3d7771405ad63af2f1e9d14d4ae5a35 /resources/locale/gen-pot.sh | |
parent | 31539042f11bc210a29e923f45586779c3ad46b2 (diff) | |
parent | 60560a030fda3c539ff9dc1563b9926414a193da (diff) |
Merge commit 'upstream/0.4.0'
Diffstat (limited to 'resources/locale/gen-pot.sh')
-rwxr-xr-x | resources/locale/gen-pot.sh | 18 |
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 |