summaryrefslogtreecommitdiffhomepage
path: root/build/i18n-sync.sh
blob: ad8c46c6ff8fd5f6646c8f7153ddbf1327b4abf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

[ -d ./build ] || {
	echo "Execute as ./build/i18n-sync.sh" >&2
	exit 1
}

./build/mkbasepot.sh

find . -name '*.pot' -and -not -name base.pot | \
	while read path; do
		dir="${path%/po/templates/*}"
		echo -n "Updating ${path#./} ... "
		./build/i18n-scan.pl "$dir" > "$path"
		echo "done"
	done

./build/i18n-update.pl