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

    • Unit
    • Unknown
    • N/A
    • N/A
    • Pull Request accepted

    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

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

            Dates

              Created:
              Updated:
              Resolved: