diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-10-11 21:49:14 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-10-11 21:49:14 +1100 |
| commit | ff730c861b7a8c4e5b7502e198cb1a979ad04abd (patch) | |
| tree | b3dccbfeb19188faede4e815c08341f254433b69 /inc/contrib/gettext/examples/update | |
| parent | e8183e7899cc0dc26d76a8c3e13f17dbf786d701 (diff) | |
Started on internationalization (i18n)
Diffstat (limited to 'inc/contrib/gettext/examples/update')
| -rwxr-xr-x | inc/contrib/gettext/examples/update | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/inc/contrib/gettext/examples/update b/inc/contrib/gettext/examples/update new file mode 100755 index 00000000..76b4308a --- /dev/null +++ b/inc/contrib/gettext/examples/update @@ -0,0 +1,14 @@ +#!/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 |
