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

Multiple inconsistencies when changing the default language of a page

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 2.2 M2
    • Old Core
    • Unknown

    Description

      To reproduce:

      • Set the wiki as multilingual
      • Edit a page
      • Create a translated version of the page
      • Modify the default language using the Document Information panel
      • Switch between the translated versions multiple times and try to reedit or export the pages.

      After changing the default language of a page the following errors appear:

      • The menus are inconsistent with the translated version of the page(Eg: export as pdf will actually export the document in another language)
      • Available document languages is broken(the new default language may appear twice)

      It seems that Document.getRealLanguage() doesn't have the right value. This value is propagated in xwikivars.vm($languageparams, $docvariant ) and then to the to other templates.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              florin_c Florin Ciubotaru
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: