aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/po/update-pot.sh
blob: 6c515a01cff1fb0c8cfb1b2a58a869a407243022 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

_xgettext() {
	xgettext --no-wrap --from-code=utf-8 --package-name=weltschmerz -cTRANSLATORS "$@" -o po/weltschmerz.pot
}

_xgettext -f po/POTFILES

# We treat this file specially in order to override the keywords used for it.
# Since we do not want Name translated, reset the keyword list with -k and then
# add the keywords we want.
_xgettext -j -k -kComment -kKeywords weltschmerz.desktop.in

while read lang; do
	msgmerge --no-wrap -q -o "po/${lang}.po" "po/${lang}.po" po/weltschmerz.pot
done < po/LINGUAS