I'd probably stick a ResourceBundle for the correct language in the context
and use
  $bundle.getString("...")
to insert the text.
For advanced multilangual text-formatting needs, you can also add a bean
that relays calls to java.text.MessageFormat.format(String, Object[]).

--
Attila Szegedi
home: http://www.szegedi.org


----- Original Message -----
From: "S�bastien Dui" <[EMAIL PROTECTED]>
To: "'Velocity Users List'" <[EMAIL PROTECTED]>
Sent: 2002. j�lius 23. 10:39
Subject: Handling multiple languages



Hi,

I was curious if any did have any experience parsing multiple
languages for a same website with Velocity ? My first taught was to use
XPath statements with Dom4J to retrieve the correct block text with the
language preference of the user, but it will probably takes too much
execution time ?

Any tip would be more than appreciated.

Regards,

S�bastien Dui
[EMAIL PROTECTED]

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





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

Reply via email to