velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SakshiAgarwal <sakshi.a...@gmail.com>
Subject Using Velocity for locale specific
Date Tue, 10 Aug 2010 06:36:42 GMT

Hi,

I am using locale specific vm files for displaying responses. I have few
dynamic params in vm file which will be locale specific. i.e for English,
Delhi will be displayed in english and for arabic it should display in
arabic.
I read that to achieve locale specific, velocity offers ResourceTool  like
below:
<tool>
  <key>text</key>
  <scope>application</scope>
  <class>org.apache.velocity.tools.generic.ResourceTool</class>
  <parameter name="bundles" value="com.mypackage.resources.moreResources"/>
  <parameter name="locale" value="en_US"/>
</tool>

But i am not sure how to use this. I can't find proper example or details
about its usage.

It would be of great help if someone can quote an example on this.

Regards
Sakshi
-- 
View this message in context: http://old.nabble.com/Using-Velocity-for-locale-specific-tp29394709p29394709.html
Sent from the Velocity - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message