summaryrefslogtreecommitdiff
path: root/resources/locale/gen-pot.sh
blob: 65acff3a1127366c8a8cd29863e06167aa1c38c8 (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.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/'