aboutsummaryrefslogtreecommitdiffstats
path: root/script/catdap_i18n.sh
blob: 8c52d1ceede01e2f1e5d60a3fc67793ee206a4a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

app=CatDap

if [ $# -eq 0 ]
then
	xgettext.pl --output=lib/$app/I18N/messages.pot --directory=lib --directory=root
	for po in lib/$app/I18N/*.po
	do
		file=`basename $po`
		loc=${file%%.po}
		msgmerge --update lib/$app/I18N/$loc.po lib/$app/I18N/messages.pot
	done
else
	msginit --input=lib/$app/I18N/messages.pot --output=lib/$app/I18N/$1.po --locale=$1
fi