Thanks Jian !

Precisely I am trying to use Velocity engine as a offline tool to send
emails. 
I have an option or workaround to keep Locale specific velocity templates
like "body.vm.de" , "body.vm.en_us" etc.
But I was wondering whether there is an inbuilt support in velocity for
I18N?

Jian, If you could please share the your parser code which enables Velocity
I18N in offline mode to the mailing list, it would be great!
I had read about "Multiviews" in velocity tools but looks like I can't use
it in offline mode.

Thanks for help!
~pp

 



-----Original Message-----
From: jian chen [mailto:[email protected]] 
Sent: Friday, March 13, 2009 10:07 PM
To: Velocity Users List
Subject: Re: Does velocity engine supports I18N ?

I have developed a website for Chinese audience and using Velocity template
engine. It definitely supports different encoding for sure.

I think if you use Velocity to send out emails, it should be ok. However, I
could see the problem with the java email library you are using, that may or
may not support well the UTF-8 encoding for example. I ran into that problem
lately trying to send out emails and I used Apache commons email library,
but for some reason, the email contained garbage text.

I wrote a parser around Velocity to use it as an offline tool to generate
the template. If you are interested, I could share it with this mailing
list.

Jian
http://www.JiansNet.com

On Fri, Mar 13, 2009 at 4:00 AM, Preetam Palwe <[email protected]> wrote:

> Hello all
>
> I am implementing a template based email library using velocity
> templates. Now I want to use I18N in it.
> Can anyone tell me whether velocity engine supports I18N?
> After some googling I found that there are velocity tools for this
> purpose. But I think one can use velocity tools in a web based
> application. I have a non-web (without any jsp/servlet/struts container)
> application under development.
>
> If velocity tools is the solution then one should configure the tools in
> order to use in code?
>
>
> Any help will be really very appreciated.
>
> Thanks in advance
> ~pp
>
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to