On Nov 8, 2007, at 2:30 PM, Tomasz Nazar wrote:

>
> Hi there!
>
> I'd really like, that when changing translations (localized
> i18n/**/*.po/mo files) pylons/paster are reloaded with newly, updated
> texts.
> (similar like changes to templates, public files are instantly  
> visible).
>
> Is it possible?

The reloader is at paste.reloader -- you can register other files for  
it to watch via paste.reloader.watch_file(filename).

>
> And btw, is it possible to get rid of PO-to-MO-compilation step? Or
> can it be done on the fly somehow?

You can all the commands in one shot, assuming you're using Babel,  
with a setuptools alias:

http://peak.telecommunity.com/DevCenter/setuptools#alias-define- 
shortcuts-for-commonly-used-commands

Something like:

setup.py alias momo extract_messages update_catalog compile_catalog

Sounds like you're looking for on the fly recompilation, like mako  
templates do when you visit them via your web app. I haven't seen any  
solutions for that, but it could be done

--
Philip Jenvey



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to