So I have a couple of messages in my property file that looks like this:
email.errordetailstemplate.subject=An error occurred in {0}
email.errordetailstemplate.errordetails=--- Error details ---
Going by the recommendations here I can then easily do this:
$messages.getMessage("email.errordetailstemplate.errordetails", null, $locale)
...but what I would love to be able to do is to be able to do substitution of {0} like this:
$messages.getMessage("email.errordetailstemplate.subject", $productname, $locale)
I'm sure it's possible, but I just can't figure out the proper syntax. Can anybody help me out?