On 17-01-2009 at 17:59:04 Karol Sikora <ka...@elektrrrus.pl> wrote:

I tried to use a sample code from documentation (chapter 4.1):

<div tal:define="welcome random_welcome_message"/>
<div i18n:translate="welcome">...</div>

It throws an exception with message that "message" is undefinied.

I think it should be correct:

<div tal:define="global welcome random_welcome_message"/>
<div i18n:translate="welcome">...</div>
or:

<div tal:define="welcome random_welcome_message">
        <div i18n:translate="welcome">...</div>
</div>

Yes, indeed. Thanks for noticing that.



--
regards, Kornel



_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to