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

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

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    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

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

            Dates

              Created:
              Updated:
              Resolved: