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

Simpler syntax for getting a translation with parameters

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Trivial
    • 3.2 M3
    • 3.2 M2
    • Old Core
    • None
    • api
    • Trivial

    Description

      Using varargs, since in Java it's harder to create a list.

      Velocity:
      $msg.get('translation.key', param1, param2, param3)
      
      Java:
      context.getMessageTool().get('translation.key', param1, param2, param3)
      

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            sdumitriu Sergiu Dumitriu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: