On Jan 31, 2006, at 1:21 PM, Jorge Godoy wrote:


"Michele Cella" <[EMAIL PROTECTED]> writes:

The best thing will probably be an automatized way of determining if
"_" should be mapped to gettext or lazy_gettext, I really have no idea
if it's possible or not.

It has to be that way from what I'm seeing here on some tests. For example, the "format" attribute for the CalendarDatePicker expects a string, so "_" works but lazy_gettext doesn't. And you can't use "_" due to the problems reported on ticket #485. json.write also seems to have problems with it,
because it prints the class instance and not the "translated" string.

jsonify is easy enough to fix -- just add another generic function that checks for that type and Does The Right Thing.

This should work:
http://trac.turbogears.org/turbogears/ticket/497

-bob

Reply via email to