On 7/9/05, Santi Camps <[EMAIL PROTECTED]> wrote:
> I'm not able to find any way to internationalize this alert message.
> Anybody knows some way to do it ?

I haven't tried this myself, but you should be able to put the message
in an HTML element that is hidden by the CSS, and internationalize
that (by calling zope.i18n.translate() before inserting it into the
generated HTML).  The JavaScript would then look for the HTML element
(by id or a class and relative location to the input element; whatever
works), and use that for the alert.

A little tedious, but not too bad for JavaScript, and your message
catalogs could be used to support whatever languages you care about
with further impacting the widget or application code.


Fred L. Drake, Jr.    <fdrake at gmail.com>
Zope Corporation
Zope3-users mailing list

Reply via email to