This content has been marked as final.
Show 3 replies
-
1. Re: localize Strings
pmuir Dec 23, 2007 10:49 AM (in response to mki_ffm)Run the String through the interpolator. Like
String result = Interpolator.instance().interpolate(messages.get("message.sendEmail"), email);
-
2. Re: localize Strings
utdrew Jan 14, 2008 2:02 PM (in response to mki_ffm)I found it easier to use the 'template' function like this:
facesMessages.add(FacesMessage.SEVERITY_INFO, messages.get("feeAgreementSearch.activateSelectedAlreadyActiveWarning"),fa.getFeeAgreementId());
In your case this would look like:facesMessages.add(messages.get("message.sendEmail"), email );
Also, I believe the templating params for seam look like #0 not {0}
Is there any plan to allow for a templated message in the messages bundle that will be resolved first and then have the appropriate parameters substituted?
Drew -
3. Re: localize Strings
pmuir Jan 14, 2008 5:38 PM (in response to mki_ffm)"UTDrew" wrote:
I found it easier to use the 'template' function like this:
Yes, I forgot about this ;)Also, I believe the templating params for seam look like #0 not {0}
No, it should be {0}, #0 is for log messagesIs there any plan to allow for a templated message in the messages bundle that will be resolved first and then have the appropriate parameters substituted?
? Don't understand.