cancel
Showing results for 
Search instead for 
Did you mean: 

Localization of email templates

patrek
Star Contributor
Star Contributor

We are able to deploy our own email templates (freemarker templates).

But, while testing it, activating debug log on org.nuxeo.ecm.platform.ec.notification.email.templates a saw that the following logs: Searching for template with name: modif_en_US Searching for template with name: modif_en Searching for template with name: modif

What is used to determine the locale? The user that triggered the notification was logged with the French interface?

Is there a way to make it so that each user receive an email in it's own locale? Where is the documentation for this part of the mechanism?

Thanks.

Patrick

1 ACCEPTED ANSWER

Not applicable

Hi,

Here is the jira issue (including a rough specification of what we plan for this feature). This is not scheduled for next release. Feel free to contribute your patch if you need it soon. Thanks

View answer in original post

2 REPLIES 2

Florent_Guillau
World-Class Innovator
World-Class Innovator

Freemaker does the locale lookup itself (see this). Nuxeo uses the default configuration, so Freemarker chooses the default server locale.

If you want to change this, the code to update would be the new Configuration() in EmailHelper, which would need a call to setLocale to the locale you need. Please feel free to propose a patch if you have one.

Not applicable

Hi,

Here is the jira issue (including a rough specification of what we plan for this feature). This is not scheduled for next release. Feel free to contribute your patch if you need it soon. Thanks