summaryrefslogtreecommitdiff
path: root/resources/locale/gen-pot.sh
blob: 356e12e96a93d90b6bf8307e57096b8af7cfc9c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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.2"
copyright="Simon Schneegans <code@simonschneegans.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/'