On Tue, Mar 26, 2013 at 7:44 PM, paramjyotsingh <[email protected]> wrote: > Claus, > > Thanks for the reply. > > I could have locale setup as JVM argument, but could you please provide > information about property or header I need to set in exchange for locale, > if I plan to have language/locale per exchange. > > Could you please elaborate on how camel uses locale property, I mean does it > set's system default locale, I want to know how locale propagates between > different frameworks/APIs. Is there any standard parameter defined. >
There is no standard in Java for associating a locale to a "message" / "request" etc. If you want to pick a template dynamic based on locale. Then either maybe Velocity offers an API to tell it which locale to use. And you can use that. Or you can use "dynamic to" in Camel. See this link http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html With this approach you can use a header with the locale abbreviation to pick the template. And then use the simple language to build that dynamic uri. See that link. > Thanks and Regards, > Paramjyot > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-velocity-template-internationalization-tp5729574p5729861.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
