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

XWikiDocument#getTranslatedDocument should fallback on parent Locale instead of only default version

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 9.6-rc-1
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      See XWIKI-14458

      The problem:

      • Imagine that you have a "fr" translation: MyPage.fr.xml
      • Imagine that you ask to load the document with locale "fr_FR", using $xwiki.getDocument()
      • It won't be found
      • Expected: when MyPage.fr_FR.xml is not found, it should fallback on MyPage.fr.xml.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: