hi,

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>

regards,
Karol

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

Reply via email to