Hi all,

I can define my mail notifications using the following extension point:

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

With this extension point I can change the language of the mail 
notifications, but I would make this notifications "translatables". For 
example, an user could select french language in the platform and all 
the mail notifications sent by this user will be in french.

I thought that I had to include translatable labels (included in the 
messages.properties files) in the ftl files, but it doesn't support this 
feature. Instead of this, I can use some expressions like ${docId} or 
${author} in the ftl files and I can add more expressions in the 
eventInfo map. For example:

message.getEventInfo().put("docSize",sizeOfDocument);

However, if I want to add more expressions I have to reimplement the 
NotificationService complement. Is there an easier way to do this feature?


Regards.

-- 
Enrique Pérez Olivares.
Dpto I+D.
Yerbabuena Software.
[EMAIL PROTECTED]
http://www.yerbabuena.es
Tlf/Fax: 902 995 246 

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

Reply via email to