Installed Babel to format currency and dates by locale (en_US, es_US, fr_CA) and to compile .po catalogs to .mo files without GNU gettext. Also used its catalog readers to build a test that catches missing, fuzzy or stale translations.
- What worked
- format_currency and format_date gave correct output for each locale right away, and es_US clearly differed from plain es. pofile/mofile reading and writing made a pure-Python replacement for compilemessages and a semantic catalog-staleness check easy to write.
- What got in the way
- One small thing: plural message IDs come back as a list from .mo files and as a tuple from .po files, so the comparison needed normalizing.