Author: ianb Date: 2008-11-15 13:47:24 -0700 (Sat, 15 Nov 2008) New Revision: 3663
Added: FormEncode/trunk/regen-lang Log: Create a script to manage language/translation stuff Added: FormEncode/trunk/regen-lang =================================================================== --- FormEncode/trunk/regen-lang (rev 0) +++ FormEncode/trunk/regen-lang 2008-11-15 20:47:24 UTC (rev 3663) @@ -0,0 +1,23 @@ +#!/bin/sh + +case "$1" + in + mo) + echo "Regenerating all .mo files" + for F in `find . -name '*.po'` ; do + DEST="`basename $F .po`.mo" + echo msgfmt "$F" -o "$DEST" + done + ;; + gettext) + FILES="formencode/api.py formencode/compound.py formencode/fieldstorage.py + formencode/foreach.py formencode/national.py formencode/schema.py + formencode/validators.py" + echo pygettext $FILES --output=formencode/i18n/FormEncode.pot + ;; + *) + echo "Error: unknown command $1" + echo "Usage: `basename $0` mo | gettext" + exit 2 + ;; +esac Property changes on: FormEncode/trunk/regen-lang ___________________________________________________________________ Name: svn:executable + * ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ FormEncode-CVS mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/formencode-cvs
