forked from leftypol/leftypol
Started on internationalization (i18n)
This commit is contained in:
parent
e8183e7899
commit
ff730c861b
30 changed files with 2584 additions and 103 deletions
14
inc/contrib/gettext/examples/update
Executable file
14
inc/contrib/gettext/examples/update
Executable file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue