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

The default content of XWiki sheets don't allow class properties translation

    Details

    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      When a new Sheet is generated for an XWiki class, it has a default content:

      #foreach($prop in $class.properties)
        ; $prop.prettyName
        : $doc.display($prop.getName())
      #end
      

      If you want to translate a property like:

      Main.MyCoolClass_name=Numele Tau

      you will get the same English translations.
      Instead of $prop.prettyName we should generate $doc.displayPrettyName($prop.name)

        Attachments

          Activity

            People

            • Assignee:
              surli Simon Urli
              Reporter:
              acotiuga Alex Cotiugă
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: