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

PDF export displays wrong content locale during export the children page in English locale in multilanguage XWiki

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 16.3.0-rc-1, 15.10.9
    • 15.10.8
    • Export - PDF
    • None
    • MS Edge (latest version), was used for XWiki version 14.10.13, 15.10.8, 16.2
    • Integration
    • High
    • Easy
    • N/A
    • N/A

    Description

      Prerequisites:

      Multilanguage XWiki - two languages, English and French, with the default language being French.

      Steps to reproduce:

      • Import the attached XAR into your XWiki or do the below steps
      • Create a parent page (non-terminal) in the Home space with a French title and French text inside it.
      • Create a children's page (non-terminal) on the above page with another title and text in French
      • Translate both pages into English either from the Information section, Translate button or during editing the French version and selecting Eng locale
      • Be on children's page with the English locale and trigger the export into PDF
      • Make sure you're in an English locale and the language for PDF export is selected English (which will be current)
      • Observe the PDF file in the web browser printer

      Actual result:

      The title of the page will be in English, however, its text will have a French locale

      Expected result:

      The title of the page and its content is having English locale

      Note:

      There's a workaround, the issue won't happen if user navigates into parent page and trigger the PDF export operation from the parent, and selecting all (including children), then the PDF document will have English version. With one point - that there'll be another issue XWIKI-22092

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            npetrenko Nikita Petrenko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: