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

EditTranslation panel: if the default langauge is empty, do not show the complete link to the page instead

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 5.2-rc-1
    • 5.2-milestone-2
    • Panels
    • None
    • Easy
    • N/A
    • N/A

    Description

      If editing a translation of a XWiki document, the "EditTranslation" panels is shown to the right, which tries to show a link to the document in the default language.

      However as the default language is empty, the renderer decides to show the link instead, which is quite long and does not look nice.

      This happens at the line

          $services.localization.render('panels.translation.editOriginalLanguage', ["[[${doc.defaultLanguage}>>path:$doc.getURL('edit', ""editor=${editor}&language=${doc.defaultLanguage}"")]]"])
      

      Using "default" if ${doc.defaultLanguage} is empty helps to avoid this.

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            camil7 Clemens Robbenhaar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: