diff options
Diffstat (limited to 'resources/locale/gen-pot.sh')
-rwxr-xr-x | resources/locale/gen-pot.sh | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/resources/locale/gen-pot.sh b/resources/locale/gen-pot.sh index 3938b63..67b0b2c 100755 --- a/resources/locale/gen-pot.sh +++ b/resources/locale/gen-pot.sh @@ -7,30 +7,29 @@ domain="gnomepie" version="0.4" copyright="Simon Schneegans <code@simonschneegans.de>" +rm $domain.pot + filelist=$( find ../ui/ -name '*.ui' -printf "%h/%f " ) xgettext --package-name $domain \ --package-version $version \ --default-domain $domain \ - --output $domain.pot.tmp \ + --output $domain.pot \ --copyright-holder="$copyright" \ --from-code utf-8 \ -k_ \ -L Glade \ $filelist -filelist=$( find ../../src/ -name '*.vala' -printf "%h/%f " ) +filelist=$( find ../../src/ -name '*.vala' -printf "%h/%f " ) xgettext --package-name $domain \ --package-version $version \ --default-domain $domain \ --output $domain.pot \ --copyright-holder="$copyright" \ --from-code utf-8 \ + --join-existing \ -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 +sed --in-place $domain.pot --expression='s/CHARSET/UTF-8/' |