Re: i18n:name - How do I use it

Joachim Zobel <jzobel-vMKf/3N+8/[email protected]> Sun, 18 Feb 2007 08:00:54 +0100
Newsgroups gmane.comp.lang.perl.modules.petal
Organization Not organized
Message-ID <[email protected]>
Am Samstag, den 17.02.2007, 18:27 +0000 schrieb Mark Holland:
> You need to to use i18n:name in conjunction with a petal:content 
> statement. This will interpolate the contents of the tag with the
> string 
> store in your pot file. So in your template you have:

Ah, thx, seems I misunderstood the tal spec. To summarize:
i18n:translate translates, i18n:name only does the $ stuff. 

http://plone.org/documentation/how-to/i18n-for-developers

So

<p i18n:translate="">First we want to test 
<span style="font-style: italic;" i18n:name="names"
i18n:translate="names">names</span>.</p>

does what I want.

Sincerely,
Joachim