Hi Gagan, > I Have some XML file, which contains the template for emails (different xml > file for different language). > > Lets say a Japanese, French and English..XML file with proper encoding... > > these templates have some velocity variable that would be populated at > runtime... (and email is to be send in alll the languages to different user) > > Lets say there is field to enter the name on the web page.. > user enter "test"... > > this will work fine on English Template.. > but wat abt the other templates(Japanese & French).. > > How can i get the user entered value ("test" in this case) to get converted > into other lang..? > I hope i m bit clear... > u have any idea???
Usually, I would use ResourceBundles for i18n issues. cf. http://java.sun.com/j2se/1.5.0/docs/guide/intl/index.html I've also heard that XML itself has a "lang" attribute, but I don't know how it's used. ## If you're trying to translate the user's input, I would look for a web service that provides translations. :) Best regards, -- Shinobu -- Shinobu Kawai <[EMAIL PROTECTED]> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]