How to customize email notification in french in Studio ?

I can modify email notification in mail templates (translate in french), but i don't know where modify subject … for example : [NUXEO]Document created

I also need to translate email notification in collab space : Member Activity of …….

Thank you

0 votes

1 answers

1275 views

ANSWER



For workflow tasks I did it contributing this XML extension :

<extension
           target="org.nuxeo.ecm.platform.ec.notification.service.NotificationService"
           point="notifications">

  <notification name="Task assigned" enabled="false" >
    <event name="workflowTaskAssigned"/>
  </notification>
  <notification name="Task assigned" channel="email" enabled="true" availableIn="Workspace"
                autoSubscribed="true" template="workflowTaskAssigned" templateExpr="NotificationContext['taskInstance'].getVariable('taskNotificationTemplate')" subject="Action requise pour ${docTitle}"
                label="label.nuxeo.notifications.appReviewStarted">
    <event name="workflowTaskAssigned"/>
  </notification>

  <notification name="Task reassigned" channel="email" enabled="true" availableIn="Workspace"
                autoSubscribed="true" template="workflowTaskAssigned" templateExpr="NotificationContext['taskInstance'].getVariable('taskNotificationTemplate')" subject="Action requise pour ${docTitle}"
                label="label.nuxeo.notifications.appReviewStarted">
    <event name="workflowTaskReassigned"/>
  </notification>

  <notification name="Task delegated" channel="email" enabled="true" availableIn="Workspace"
                autoSubscribed="true" template="workflowTaskDelegated"  subject="Tache deleguee pour ${docTitle}"
                label="label.nuxeo.notifications.appReviewStarted">
    <event name="workflowTaskDelegated"/>
  </notification>
</extension>

See https://github.com/nuxeo/nuxeo/blob/2387c0ba417810c3b68fd8d51795b46cdee6f579/modules/platform/nuxeo-platform-document-routing/nuxeo-routing-core/src/main/resources/OSGI-INF/document-routing-notification-contrib.xml

0 votes