[PHPTAL] How can I translate attributes generated on the fly?

2013-07-17 Thread Carlos Gonzalez
i'm trying to translate attributes, but doesn't work... example... i have my_var defined as translation_key translations.po has defined translation_key as: msgid translation_key msgstr my Page when i try to translate i do something like /a i18n:attributes=title my_var i18n:translate=my_var//

Re: [PHPTAL] How can I translate attributes generated on the fly?

2013-07-17 Thread Carlos Gonzalez
ok, i resolved this doing: /tal:block tal:define=global msg i18n:translate=my_var// /a i18n:attributes=title ${msg} i18n:translate=my_var/ /the result is: /a title=my Pagemy Page/a/ / /El 17/07/13 15:44, Carlos Gonzalez escribió: i'm trying to translate attributes, but doesn't work... example