[FE-discuss] managing translations

Top Page
Author: Ian Bicking
Date:  
To: formencode-discuss
Subject: [FE-discuss] managing translations
So, I think there's some out-of-date things with translations, and some
patches to apply. I don't know much about translations, but here's a
script I made to get the .pot file generated, and refresh .mo files from
the .po files. Can someone tell me if this is the right way to do it?
(I also committed it, as yet un-run, at
http://svn.colorstudy.com/FormEncode/trunk/regen-lang)

   Ian
#!/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
-------------------------------------------------------------------------
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-discuss mailing list
FormEncode-discuss@???
https://lists.sourceforge.net/lists/listinfo/formencode-discuss