On Aug 28, 2007, at 5:32 AM, Max Ischenko wrote:

> Hi Alberto,
>
> On 8/27/07, Alberto Valverde <[EMAIL PROTECTED]> wrote:
>
> You'll then have to add FormEncode's messages to your app's message
> catalog, compile it, etc... and that should do it.
>
> BTW, I'd love to hear of a way to configure Pylons's "_" function to
> use the message catalog inside FormEncode's egg instead of copying it
> inside my app's catalog, is there any?
>
> I submitted a patch that does roughly this, see
> http://pylonshq.com/project/pylonshq/ticket/296

Yeah, this is more or less what I was talking about. However, my  
thoughts were more on the direction of the "domain" kw. that TG's  
gettext had (and that formencode is built around) which lets you  
choose which egg's catalog to use for translations.

OTOH, Ben's suggestion of an utility that consolidated all the messge  
catalogs used by the application into one sounds like the best idea  
to me since it gives you full control of the final catalog (eg: to  
override ceratin strings) and would scale better when using various  
eggs each with their own catalog (although none implemented yet,  
widget packages come to mind...)

I haven't used Babel yet so I don't feel I'm in the best position to  
open a feature request for this at their tracker just now... perhaps  
someone that also thinks it's a good idea can do it? :)

Albert


--~--~---------~--~----~------------~-------~--~----~
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