macagua
(Leonardo Caballero)
1
Hi guys
How add i18n support to the following TAL sintax?
<h2 tal:define="form_title string:Add Page Template"
tal:replace="structure here/manage_form_title">Form Title</h2>
What is the correct way to adapt this syntax for i18ndude tool can be extract this string into my pot file?
espenmn
(Espen)
2
Are you sure this is the best markup ? You are replacing the whole h2 (including the tags).
And what is form_title used for?
Not sure why you need that syntax, maybe you could just do
<h2 i18n:translate="">${view/manage_form_title}</h2>
or
<h2 i18n:translate="" tal:content="view/manage_form_title">Title</h2>
That would probably not add it to your pot files, though. I think this has been discussed earlier here, try searching for it
1 Like