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

When there is wiki syntax in a parameter, the translation macro fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 5.3-milestone-2
    • Fix Version/s: None
    • Component/s: Localization
    • Labels:
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Here is the key:

      platform.wiki.sheet.desc.secure=If enabled, all this wiki''s generated externals URLs will starting with {0}.
      

      Here is the call

      {{translation key="platform.wiki.sheet.desc.secure" parameters="//https//" /}}
      

      Here is the result:

      If enabled, all this wiki''s generated externals URLs will starting with {0}. 
      

      But the following code does not fail:

      $services.localization.render("platform.wiki.sheet.desc.secure", ["//https//"])
      

        Attachments

          Activity

            People

            Assignee:
            tmortagne Thomas Mortagne
            Reporter:
            gdelhumeau Guillaume Delhumeau
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: