Hello,
I plan to translate email notification. I want to translate default Nuxeo 5.2 body and subject email field.
I know where to find default notification configuration : nuxeo-platform-notification-core-5.2.0.jar/OSGI-INF/notification-contrib.xml
For body email, I created a new plugin so I override default templates without delete them.
Example :
<extension target="org.nuxeo.ecm.platform.ec.notification.service.NotificationService"
point="templates">
<template name="subscriptionsUpdated" src="templates/subscriptionsUpdated.ftl" />
<template name="modif" src="templates/modif.ftl" />
<template name="publish" src="templates/publish.ftl" />
<template name="auto" src="templates/auto.ftl" />
<template name="workflow" src="templates/workflow.ftl" />
<template name="aprobationWorkflowStarted" src="templates/appReviewStarted.ftl" />
<template name="emailDocument" src="templates/emailDocument.ftl" />
<template name="workflowTaskAssigned" src="templates/workflowTaskAssigned.ftl" />
<template name="defaultNotifTemplate" src="templates/defaultNotifTemplate.ftl" />
</extension>
Everything works fine and I'm happy ! :o)
But... there's always a but... I did the same for subject field (plugin creation) but it didn't work. Subject are always in english...
Example :
<extension
target="org.nuxeo.ecm.platform.ec.notification.service.NotificationService"
point="notifications">
<notification name="Subscriptions updated" channel="email"
enabled="true" availableIn="Workspace" autoSubscribed="true"
template="subscriptionsUpdated" subject="Nouvel Abonnement"
label="label.nuxeo.notifications.subscriptions.updated">
<event name="subscriptionAssigned" />
</notification>
<extension>
So I have 3 questions :
1. To translate emails in french, what's the best practice ? Must I change default file or write a new plug-in/module which will / override default plugin ?
2. In general (in Nuxeo), Can we override every default Nuxeo modules by creating a new module?
3. In a multilingual application how can I have ?
Thanks for your help and time you spend on this.
--
Posted by "jm.pascal" at Nuxeo Discussions <
http://nuxeo.org/discussions>
View the complete thread: <
http://www.nuxeo.org/discussions/thread.jspa?threadID=2631#7416>
_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecmTo unsubscribe, go to
http://lists.nuxeo.com/mailman/options/ecm