Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-18298

XWiki notifications email partially translated

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 10.11.9
    • Notifications
    • 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')))
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mouhb Mohamed Boussaa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: