Set freemarker locale setting acccording to the webengine locale
----------------------------------------------------------------

                 Key: NXP-4069
                 URL: http://jira.nuxeo.org/browse/NXP-4069
             Project: Nuxeo Enterprise Platform
          Issue Type: Improvement
    Affects Versions: 5.2 GA
            Reporter: Anahide Tchertchian
            Assignee: Thierry Delprat
             Fix For: 5.2.x


Some freemarker builtin methods depend on the current locale, for instance for 
date formatting:
${doc['dc:created']?date?string.short}

This will print dd/mm/yy in French, and mm/dd/yy in English.

For this change to be effective according to the webengine current locale, the 
following setting has to be written on each freemarker template using these 
methods:

<#setting locale=Context.getLocale()>

It would be better to put this setting on the freemarker engine directly, so 
that the setting does not need to be repeated on every template.


-- 
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