You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Panu Hällfors <pa...@elmeri.hallfors.com> on 2002/07/05 11:34:49 UTC
Localization pull service?
[I'm not sure if I should post this to Turbine's or
Velocity's lists - I'll try first here]
Is there a localization pull service available for a
Turbine/Velocity combination? There's the Localization
service in Turbine 2 but it cannot be used as a
pull service on Velocity pages.
Well, it's not a great job to subclass Localization
service and make it a pull service but I'd like to
use an existing tool if available.
Panu
--
Panu Hällfors, panu@hallfors.com|CS Student, Helsinki University of Technology
http://panu.hallfors.com | Internet Application Developer, Viloke Oy
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Localization pull service?
Posted by Panu Hällfors <pa...@hallfors.com>.
On Fri, Jul 05, 2002 at 05:01:46PM +0200, Gabriel Sidler wrote:
> Hi Panu,
> Dan Rall has contributed a view tool that provides some
> i18n support. It's part of the Velocity Tools subproject
> and is called MultiViewTool. What it basically does is
> find for a requested template and a desired language the
> file name of the corresponding internationalized template,
> or a default file name if the desired language is not available.
>
> More details here:
> http://cvs.apache.org/viewcvs/jakarta-velocity-tools/view/src/java/org/apache/velocity/tools/view/i18n/
Thanks. This looks quite good. However, I'd like more to have
a single template for all languages and just retrieve the translations
one by one. It's very hard to keep all the language versions of the
templates up to date without a tool (and I'd rather not use multiple
tools...)
Panu
--
Panu Hällfors, panu@hallfors.com|CS Student, Helsinki University of Technology
http://panu.hallfors.com | Internet Application Developer, Viloke Oy
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Localization pull service?
Posted by Gabriel Sidler <si...@teamup.ch>.
Panu Hällfors wrote:
> [I'm not sure if I should post this to Turbine's or
> Velocity's lists - I'll try first here]
>
> Is there a localization pull service available for a
> Turbine/Velocity combination? There's the Localization
> service in Turbine 2 but it cannot be used as a
> pull service on Velocity pages.
>
> Well, it's not a great job to subclass Localization
> service and make it a pull service but I'd like to
> use an existing tool if available.
>
> Panu
>
>
Hi Panu,
Dan Rall has contributed a view tool that provides some
i18n support. It's part of the Velocity Tools subproject
and is called MultiViewTool. What it basically does is
find for a requested template and a desired language the
file name of the corresponding internationalized template,
or a default file name if the desired language is not available.
More details here:
http://cvs.apache.org/viewcvs/jakarta-velocity-tools/view/src/java/org/apache/velocity/tools/view/i18n/
Hope this helps
Gabe
--
--
Gabriel Sidler
Software Engineer, Eivycom GmbH, Zurich, Switzerland
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>