It's written to the JX Template using:

<c:messages>
  <jx:out value="#{messages}" xmlize="true"/>
</c:messages>

Where the jx:out contains a Java String that looks like this:

<c:messages>
  <c:message>
    <i18n:text key="provided_ok"/>
  </c:message>
</c:messages>

When I look at the source after all the transforms, the String that came from 
Java looks like this:

<c:messages>
  <c:message>
    Provided URL validated.
  </c:message>
</c:messages>

So it's being translated, and it's not that it's treated as a regular string. 

Other text that isn't i18n looks like this:

<c:messages>
  <c:message>
    En status må velges.
  </c:message>
</c:messages>

So I don't see why the i18n text shouldn't be displayed in the same way as the 
non-i18n text is. 

- Magnus


-----Original Message-----
From: Askild Aaberg Hofsøy Olsen [mailto:[EMAIL PROTECTED] 
Sent: 23. juni 2008 11:13
To: [email protected]
Subject: Re: [C22] i18n

Magnus Haraldsen Amundsen wrote:
>
> The i18nTransformer works when I follow the 2.1 documentation, but 
> we've found that <i18n:text> tags that we've hardcoded in the Java 
> code doesn't get translated. It seems as it only translates 
> <i18n:text> tags that we've added in the JX templates and the XSLT 
> stylesheets.
>
My guess is that your <i18n:text> in Java is just treated as the the 
string "<i18n:text>..</>", and are never parsed as an element in the stream.

If you look at the resulting XML before the i18n-transformer, do you see 
them as "&lt;18n:text&gt;"?

Askild


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

IMPORTANT NOTICE:
This message may contain confidential information.
If you have received this e-mail in error, do not use, copy or
distribute it. Do not open any attachments. Delete it immediately from
your system and notify the sender promptly by e-mail that you
have done so. Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to