I am using freemarker template for email generation. I use freemark in conjunction with spring. I am having a tough time to get internationalization working with parameter substituion. I got it to work for one parameter substition.
example : message.hello = Hello, {0}
in fm template
I have something like
<@spring.messageArgs "message.hello" name />
however, I am not able to figure out how we do it for multiple param substitution. message.greet = Hello {0}, welcome to {1}
how can I represent this in the template?
when I try the following:
<@spring.messageArgs "message.greet" name, place />
it does not work. could you please help here?
regards
PRasad
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am using freemarker template for email generation. I use freemark in conjunction with spring. I am having a tough time to get internationalization working with parameter substituion. I got it to work for one parameter substition.
example :
message.hello = Hello, {0}
in fm template
I have something like
<@spring.messageArgs "message.hello" name />
however, I am not able to figure out how we do it for multiple param substitution.
message.greet = Hello {0}, welcome to {1}
how can I represent this in the template?
when I try the following:
<@spring.messageArgs "message.greet" name, place />
it does not work. could you please help here?
regards
PRasad
That's more a Spring question. But see answer on https://stackoverflow.com/questions/47557573/getting-error-with-freemarker-template-integration-with-spring-internationlizati/47570050#47570050.