[Cartoweb-users] Include HTML in po file

Yves Jacolin yjacolin at free.fr
Wed Jan 17 10:28:41 EST 2007


Le Mercredi 17 Janvier 2007 15:20, François Prunayre a écrit :
> Hi list, I would like to add HTML in po file like :
>
> msgid "geonameInfo"
> msgstr "Mes infos (<img "
> "src='locate/gfx/A.png'/>), "
>
> But this is translated into this "Mes infos (&lt;img
> src='locate/gfx/A.png'/&gt;),"
>
> Any hint to escape HTML in po file ?
>
> Thanks for your help.
>
> Francois
Hello,

I think that you misuse the po file which is used only to translate text! Not 
to fill variable with any html tags.

Maybe you can try something like add a smarty translated text in the image 
insertion :
 src="{r type=gfx/layout}{t}A.png{/t}{/r}"

And so translate only the text "A.png"!

Y.

-- 
Yves Jacolin
---
http://yjacolin.gloobe.org



More information about the Cartoweb-users mailing list