1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-25 22:04:53 +01:00
vichan/inc/lib/gettext/examples/update
2012-04-09 20:52:26 +10:00

15 lines
326 B
Bash
Executable File

#!/bin/sh
TEMPLATE=pigs.pot
xgettext -kT_ngettext:1,2 -kT_ -L PHP -o $TEMPLATE pigs_dropin.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