]> projects.mako.cc - scuttle/blob - includes/php-gettext/examples/update
added jQuery UI autocomplete to the tags field when editing a bookmark
[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_dropin.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?