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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2-milestone-2
    • Fix Version/s: 5.2-rc-1
    • Component/s: Panels
    • Labels:
      None
    • Difficulty:
      Easy
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: