[ 
http://jira.nuxeo.org/browse/NXP-4050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60152#action_60152
 ] 

Anahide Tchertchian commented on NXP-4050:
------------------------------------------

forgot to update interface:
http://hg.nuxeo.org/nuxeo/nuxeo-webengine/rev/c340a961331c

> Pass arguments to messages in webengine
> ---------------------------------------
>
>                 Key: NXP-4050
>                 URL: http://jira.nuxeo.org/browse/NXP-4050
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Bug
>            Reporter: Anahide Tchertchian
>            Assignee: Anahide Tchertchian
>             Fix For: 5.2.x
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to