[Building Sakai] Adding Profile2 mail translations to EmailTemplateService

Daniel Merino daniel.merino at unavarra.es
Fri Apr 12 00:58:59 PDT 2013


Hi everybody.

I'm sorry if this is a basic question, but we have translated to spanish 
and basque the mail templates of Profile2, placed at 
<SRC>/api/src/java/org/sakaiproject/profile2/emailtemplates/ and we have 
added them to <SRC>/pack/src/webapp/WEB-INF/components.xml, deploying 
the tool after that.

Chinese was added to Profile2 in 
https://jira.sakaiproject.org/browse/PRFL-671 and I have tried to repeat 
the same changes for spanish.

These changes don't seem to work Mails are sent in english though the 
user has spanish as preferred language.

In the EMAIL_TEMPLATE_ITEM table are not the new values neither, for 
example the connectionRequest templates have only these languages:

TEMPLATE_KEY               TEMPLATE_LOCALE
-------------------------- ---------------
profile2.connectionRequest                
profile2.connectionRequest zh_CN          
profile2.connectionRequest sv_SE          
profile2.connectionRequest default        

How can I add a new Profile2 template to ETS? Should I insert the new 
rows directly in database? I would be grateful if somebody could point 
me to some documentation.

Thanks in advance.
Best regards.
-- 
Daniel Merino Echeverría
daniel.merino at unavarra.es
Gestor de teleformación - Centro Superior de Innovación Educativa.
Tfno: 948-168489 - Universidad Pública de Navarra.


More information about the sakai-dev mailing list