Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
10.11.9
-
Unknown
-
Description
XWiki version : 10.11.9
I have a wiki with the following Internationalization configuration :
- Multilingual : No
- Supported languages : fr
- Default language : fr
The issue is that the emails sent by the notification system are partially translated to french, there are some standard translations that are displayed in English even if the wiki is configured to only use french.
See screenshot :
It seems that the context language is not correctly set when the email content is rendered.
As a workaround to this issue, on a custom skin, I customized the template notification/email/macros.vm by forcing the context language to french, this change fixed the issue, so this confirm that the issue is related to the context language.
I added the code below at the beginning of the notification/email/macros.vm template.
#set ($discard = $xcontext.context.setLocale($services.localization.toLocale('fr')))