Thansk for the reply. I've already seen that code. The problem is that in
that example a class Confirm was created in a javascript file:
var Confirm = Class.create();


But as far as I know it is valid only for prototype and for jQuery as it's
in my case. The js file uses jQuery. Any other idea?
Thks


On Thu, Dec 22, 2011 at 12:46 PM, Paulo Ricardo Ribeiro <
paulo.rica...@gmail.com> wrote:

> Hello
>
> I Have something like this:
>
> <span t:type="any" t:mixins="Confirm" t:message="The user ${user.username}
> will be removed.">Delete</span>
>
>
>
> So, i guess that, the same way I'm able to get the username, it's maybe
> possible to get a i18n message, and pass it to the javascript.
>
>
> (The mixin code is here:
> http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained)
>
>
>
>
>
>
>
> On Thu, Dec 22, 2011 at 11:31 AM, Sergueï Cambour <s.camb...@gmail.com
> >wrote:
>
> > Is it possible to translate some javascript popup mesages by injection
> the
> > translated values from a 'tml' page into javascript function which is in
> a
> > separate js file?
> >
> > Thanks
> >
>

Reply via email to