summaryrefslogtreecommitdiffhomepage
path: root/build/i18n-init.sh
blob: 9612068c91e2ab47456c3e49e467e868ba661c60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

PATTERN=$1

[ -z "$PATTERN" ] && PATTERN='*.pot'

for lang in $(cd po; echo ?? ??_??); do
	for file in $(cd po/templates; echo $PATTERN); do
		if [ -f po/templates/$file -a ! -f "po/$lang/${file%.pot}.po" ]; then
			msginit --no-translator -l "$lang" -i "po/templates/$file" -o "po/$lang/${file%.pot}.po"
			svn add "po/$lang/${file%.pot}.po"
		fi
	done
done