Discussion:
unknown
1970-01-01 00:00:00 UTC
Permalink
# if not already installed
easy_install Babel
# Extract to .pot
python setup.py extract_messages
# Merge .pot to .pos
python setup.py update_catalog
# Compile .pos to .mos
python setup.py compile_catalog

(you can chain those in one setup.py command)

I've recompiled the .mos and fixed a couple string formatting errors
that Babel reported (due to changed messages that were merged).

Beware that babel's compile_catalog has a bug where it'll blow up on
escaped formatting strings (i.e. %%A) -- and we have one of those.
This is already fixed on Babel trunk, but note that it unfortunately
requires a couple extra steps to install (see
http://babel.edgewall.org/wiki/SubversionCheckout)
. If anyone wants the catalogs recompiled before a new Babel release
is out, email me and I'll do it.

It'd be nice if our awesome translators could take a look at the new
missing and fuzzy entries, here's our current coverage:

$ python setup.py compile_catalog
running compile_catalog
80 of 109 messages (73%) translated in 'formencode/i18n/cs/LC_MESSAGES/
FormEncode.po'
compiling catalog 'formencode/i18n/cs/LC_MESSAGES/FormEncode.po' to
'formencode/i18n/cs/LC_MESSAGES/FormEncode.mo'
86 of 109 messages (78%) translated in 'formencode/i18n/de/LC_MESSAGES/
FormEncode.po'
compiling catalog 'formencode/i18n/de/LC_MESSAGES/FormEncode.po' to
'formencode/i18n/de/LC_MESSAGES/FormEncode.mo'
82 of 109 messages (75%) translated in 'formencode/i18n/el/LC_MESSAGES/
FormEncode.po'
compiling catalog 'formencode/i18n/el/LC_MESSAGES/FormEncode.po' to
'formencode/i18n/el/LC_MESSAGES/FormEncode.mo'
82 of 109 messages (75%) translated in 'formencode/i18n/es/LC_MESSAGES/
FormEncode.po'
compiling catalog 'formencode/i18n/es/LC_MESSAGES/FormEncode.po' to
'formencode/i18n/es/LC_MESSAGES/FormEncode.mo'
83 of 109 messages (76%) translated in 'formencode/i18n/et/LC_MESSAGES/
FormEncode.po'
compiling catalog 'formencode/i18n/et/LC_MESSAGES/FormEncode.po' to
'formencode/i18n/et/LC_MESSAGES/FormEncode.mo'
81 of 109 messages (74%) translated in 'formencode/i18n/fi/LC_MESSAGES/
FormEncode.po'
compiling catalog 'formencode/i18n/fi/LC_MESSAGES/FormEncode.po' to
'formencode/i18n/fi/LC_MESSAGES/FormEncode.mo'
108 of 109 messages (99%) translated in 'formencode/i18n/fr/
LC_MESSAGES/FormEncode.po'
compiling catalog 'formencode/i18n/fr/LC_MESSAGES/FormEncode.po' to
'formencode/i18n/fr/LC_MESSAGES/FormEncode.mo'
82 of 109 messages (75%) translated in 'formencode/i18n/it/LC_MESSAGES/
FormEncode.po'
compiling catalog 'formencode/i18n/it/LC_MESSAGES/FormEncode.po' to
'formencode/i18n/it/LC_MESSAGES/FormEncode.mo'
81 of 109 messages (74%) translated in 'formencode/i18n/lt/LC_MESSAGES/
FormEncode.po'
compiling catalog 'formencode/i18n/lt/LC_MESSAGES/FormEncode.po' to
'formencode/i18n/lt/LC_MESSAGES/FormEncode.mo'
82 of 109 messages (75%) translated in 'formencode/i18n/nb_NO/
LC_MESSAGES/FormEncode.po'
compiling catalog 'formencode/i18n/nb_NO/LC_MESSAGES/FormEncode.po' to
'formencode/i18n/nb_NO/LC_MESSAGES/FormEncode.mo'
82 of 109 messages (75%) translated in 'formencode/i18n/nl/LC_MESSAGES/
FormEncode.po'
compiling catalog 'formencode/i18n/nl/LC_MESSAGES/FormEncode.po' to
'formencode/i18n/nl/LC_MESSAGES/FormEncode.mo'
82 of 109 messages (75%) translated in 'formencode/i18n/pl/LC_MESSAGES/
FormEncode.po'
compiling catalog 'formencode/i18n/pl/LC_MESSAGES/FormEncode.po' to
'formencode/i18n/pl/LC_MESSAGES/FormEncode.mo'
82 of 109 messages (75%) translated in 'formencode/i18n/pt_BR/
LC_MESSAGES/FormEncode.po'
compiling catalog 'formencode/i18n/pt_BR/LC_MESSAGES/FormEncode.po' to
'formencode/i18n/pt_BR/LC_MESSAGES/FormEncode.mo'
82 of 109 messages (75%) translated in 'formencode/i18n/pt_PT/
LC_MESSAGES/FormEncode.po'
compiling catalog 'formencode/i18n/pt_PT/LC_MESSAGES/FormEncode.po' to
'formencode/i18n/pt_PT/LC_MESSAGES/FormEncode.mo'
81 of 109 messages (74%) translated in 'formencode/i18n/ru/LC_MESSAGES/
FormEncode.po'
compiling catalog 'formencode/i18n/ru/LC_MESSAGES/FormEncode.po' to
'formencode/i18n/ru/LC_MESSAGES/FormEncode.mo'
82 of 109 messages (75%) translated in 'formencode/i18n/sk/LC_MESSAGES/
FormEncode.po'
compiling catalog 'formencode/i18n/sk/LC_MESSAGES/FormEncode.po' to
'formencode/i18n/sk/LC_MESSAGES/FormEncode.mo'
76 of 109 messages (69%) translated in 'formencode/i18n/sl/LC_MESSAGES/
FormEncode.po'
compiling catalog 'formencode/i18n/sl/LC_MESSAGES/FormEncode.po' to
'formencode/i18n/sl/LC_MESSAGES/FormEncode.mo'
82 of 109 messages (75%) translated in 'formencode/i18n/zh_CN/
LC_MESSAGES/FormEncode.po'
compiling catalog 'formencode/i18n/zh_CN/LC_MESSAGES/FormEncode.po' to
'formencode/i18n/zh_CN/LC_MESSAGES/FormEncode.mo'
82 of 109 messages (75%) translated in 'formencode/i18n/zh_TW/
LC_MESSAGES/FormEncode.po'
compiling catalog 'formencode/i18n/zh_TW/LC_MESSAGES/FormEncode.po' to
'formencode/i18n/zh_TW/LC_MESSAGES/FormEncode.mo'

--
Philip Jenvey
--
Ian Bicking : ***@colorstudy.com : http://blog.ianbicking.org
Loading...