Striping out html tags from translation string?
"Josef Albert Meile" <[email protected]>
| Newsgroups | gmane.comp.web.zope.internationalization |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I'm playing with the i18n stuff and I have succeed with some things, but now
I have a particular problem. Suppose that you want to translate this:
<div i18n:translate="" i18n:domain="JMGeneric">optional fields are written
in <i>italic</i></div>
I added the following string to my message catalogs:
"optional fields are written in italic"
But the translation didn't succeed because of the <i></i> tags, which I
don't want to add the my message catalog.
I know you could also have mappings:
"optional fields are written in ${tag1}italic${tag2}"
but it is even more complicated than just including <i>...</i>
Is it possible to strip the html characters when sending the string to the
i18n workspace? I think it would be usefull when translated long html
formated texts.
Thanks in advanced,
Josef
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail