-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.3 RC
-
Component/s: None
-
Upgrade notes:
Currently it's not possible to pass arguments to a message to translate using the method Context.getMessage(message, args...).
When trying to print something like:
${Context.getMessage('my.sentence.with.date', current_date)}
With current_date a string, the error is:
Caused by: freemarker.template.TemplateModelException: Could not convert an instance of freemarker.template.SimpleScalar with value [22/09/09] to [Ljava.lang.String;
When trying to pass it as an array, the error is:
Caused by: freemarker.template.TemplateModelException: Could not convert an instance of freemarker.template.SimpleSequence with value [[22/09/09]] to java.lang.String