On Mon, Mar 5, 2012 at 3:52 PM, Lukas <[email protected]> wrote:
> Now how do I get rid of the `<dynamic element>` in the comment of
> my .pot file? I'd like to see the rest of the code along with its
> tags.
IIRC, you need a i18n:name attribute for your <span> element:
<div i18n:translate="MyID">
This will appear in the comments.
<span i18n:name="foobar">This will NOT.</span>
While this will again appear.
</div>
This should produce a string like this for your MyID message in your .pot file:
This will appear in the comments. ${foobar} While this will again appear.
See:
http://chameleon.repoze.org/docs/latest/#introduction (The "The third
language subset is the translation system..." part)
http://chameleon.repoze.org/docs/latest/reference.html#i18n-name
HTH.
Douglas
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.