From Philip:
-------- Original Message --------
From: Philip Jenvey <pjenvey@???>
On Nov 15, 2008, at 12:49 PM, Ian Bicking wrote:
> 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)
Alright I've integrated babel. From now on this is how we should
regenerate the catalogs:
# 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 : ianb@??? : http://blog.ianbicking.org
-------------------------------------------------------------------------
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