d582054c77
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@1 b3834d28-1941-0410-a4f8-b48e95affb8f
14 lines
318 B
Bash
14 lines
318 B
Bash
#!/bin/sh
|
|
TEMPLATE=pigs.pot
|
|
xgettext -kT_ngettext:1,2 -kT_ -L PHP -o $TEMPLATE pigs.php
|
|
if [ x$1 == 'x-p' ]; then
|
|
msgfmt --statistics $TEMPLATE
|
|
else
|
|
if [ -f $1.po ]; then
|
|
msgmerge -o .tmp$1.po $1.po $TEMPLATE
|
|
mv .tmp$1.po $1.po
|
|
msgfmt --statistics $1.po
|
|
else
|
|
echo "Usage: $0 [-p|<basename>]"
|
|
fi
|
|
fi
|