I've done velocity work with I18n and 33 languages. I've always just passed
in my I18n object from Java into the velocity context then called
$!{i18n}.tr('Text to translate') in the template. That way there's only one
template to maintain.

Of course, this assumes that the view has the same layout and information
for every locale.

On Sat, Mar 14, 2009 at 6:08 AM, Byron Foster <[email protected]> wrote:

> Couldn't you always maintain your template files in UTF-8, then always
> merge in UTF-8 and send out the email in UTF-8.  Unless I'm not
> understanding the problem.  I'm not sure what a I18N tool would do for you,
> unless this is more of an issue of date and number formatting.
>
>
> On Mar 14, 2009, at 0:35 , Preetam Palwe wrote:
>
>  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.
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to