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

Field pretty name should not take precedence over the specified translation prefix

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 13.3
    • Fix Version/s: 12.10.8, 13.5-rc-1, 13.4.1
    • Component/s: Live Data
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Pull Request Status:
      Pull Request accepted
    • Similar issues:

      Description

      {{liveData id='releases'
        source='liveTable'
        sourceParameters='className=ReleaseCode.ReleaseClass&translationPrefix=release.livetable.'
        properties='version,releaseManagers,releaseDate,releaseNotes'
        sort='releaseDate:desc'
      }}$jsontool.serialize($liveDataConfig){{/liveData}}
      

      Using the example above, a live data with a liveTable source and a source parameter with a class name and a translation prefix, if a translation key exist (for instance release.livetable.releaseDate), the label of the column will still be the pretty name of the corresponding field (ie, the pretty name of the releaseDate field of the ReleaseCode.ReleaseClass XClass).

      This is not the expected behavior and the translation key must be used in priority.

        Attachments

          Activity

            People

            Assignee:
            mleduc Manuel Leduc
            Reporter:
            mleduc Manuel Leduc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: