projects
/
scuttle
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
c8d8b61aa7a9a89bdef52b00cae2a87f2ddcf2bc
[scuttle]
/
includes
/
php-gettext
/
examples
/
update
1
#!/bin/sh
2
TEMPLATE=pigs.pot
3
xgettext -kT_ngettext:1,2 -kT_ -L PHP -o $TEMPLATE pigs.php
4
if [ x$1 == 'x-p' ]; then
5
msgfmt --statistics $TEMPLATE
6
else
7
if [ -f $1.po ]; then
8
msgmerge -o .tmp$1.po $1.po $TEMPLATE
9
mv .tmp$1.po $1.po
10
msgfmt --statistics $1.po
11
else
12
echo "Usage: $0 [-p|<basename>]"
13
fi
14
fi
Benjamin Mako Hill
||
Want to submit a patch?