[PHPTAL] i18n translation with attributes

a b admirau at gmail.com
Sun Aug 17 14:44:27 CEST 2008


Hello.

Which is the simplest way to translate following structure:

    <h1 id="title">This is test template header</h1>
        <p>Simple test</p>
        <p>this is text, and this is link: <a href="http://example.com"
title="Test title 1"><img src="image.png" alt="Test alt 1" title="Image
title 1" /></a> and more text.</p>

(Alt and Title attributes sould be translated as well).
How the PHPTAL template shoul look in this case?
My preferred way in simple cases is i18n:translate="", not using string
names.
What about i18n:attributes? There's nothing in the manual covering this
topic.

-- 
takeshin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/phptal/attachments/20080817/50c52ad3/attachment.htm


More information about the PHPTAL mailing list