velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shinobu Kawai Yoshida <shinobu.ka...@gmail.com>
Subject Re: Question on using text from resource bundles
Date Fri, 14 Jan 2005 01:01:35 GMT
Hi Mike,

> Or you could just write your own custom velocity tool (perhaps using the
> struts one as a basis) if that's not a good fit.   A velocity tool is just a
> java class that's stuck into the Velocity context so you can call methods on
> it.

ResourceBundles are one of the key features for java i18n.
   http://java.sun.com/j2se/1.4.2/docs/guide/intl/intl.doc.html#23039

I would say a ResourceBundleTool (or something like that) could come
in handy as a generic tool.  And maybe a ViewTool which uses the
request's Locale, too.  :)

Best regards,
-- Shinobu

--
Shinobu "Kawai" Yoshida <shinobu.kawai@gmail.com>

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


Mime
View raw message