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

Wrong text displayed in the Add Annotation submit button when in French

    Details

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

      Description

      See screenshot. This is a bug introduced by https://github.com/xwiki/xwiki-platform/commit/2780a0102e675c36e12d6a08980d7d4b0726d5b4#diff-7bc2a1d22d6526b22159f615775763f3R62

      The reason is that the translation is not escaped and thus the following:

          <span class='buttonwrapper'><input type="submit" class='button' value='$services.localization.render("annotations.action.${mode}.submit.text")'/></span>
      

      Generates:

          <span class='buttonwrapper'><input type="submit" class='button' value='Ajouter l'annotation'/></span>
      

      Which means only value='Ajouter l' is taken into account in HTML.

        Attachments

          Activity

            People

            • Assignee:
              vmassol Vincent Massol
              Reporter:
              vmassol Vincent Massol
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: