cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastien Arbogast <sebastien.arbog...@gmail.com>
Subject i18n and html inside
Date Thu, 28 Apr 2005 15:09:46 GMT
Hi,

In theory is it possible to have plain HTML as messages in i18n
catalogs ? Because I have this catalog entry :

<message key="welcome_message">
        Welcome to {0}.<br/>
        To contact the administrator :  
        <a href="mailto:{1}" title="Administrator&apos;s e-mail">{1}</a>
    </message>

And in my JX template I have the following

<i18n:translate>
        <i18n:text key="welcome_message"/>
        <i18n:param>${site.getBaseUrl()}</i18n:param>
        <i18n:param>${site.getAdminEmail()}</i18n:param>
    </i18n:translate>

And the HTML I get is :

Welcome to http://localhost:8080/
<br xmlns:c="http://apache.org/cocoon/templates/jx/1.0" />
        To contact the administrator :
        <a href="mailto:{1}" title="Administrator&apos;s
e-mail">admin@test.com</a>

So the email address in href is not translated.

Any ideas ?

Thx in advance

-- 
Sebastien ARBOGAST

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message