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

    • Bug
    • Resolution: Fixed
    • Major
    • 9.6-rc-1
    • 1.0
    • Old Core
    • None
    • Unknown
    • N/A
    • N/A

    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

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

              Dates

                Created:
                Updated:
                Resolved: