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

The macro editor displays the raw parameter feature id as a group heading instead of a translated name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • WYSIWYG Editor
    • None
    • Unknown

    Description

      A macro can declare several parameters as alternatives of one same requirement, by annotating them with @PropertyFeature – the user fills in one of them. The macro insert/edit dialog shows such a feature as a box with a heading. That heading is never translated: it shows the raw feature id, in every language.

      Steps to reproduce

      1. Set the wiki default language to French.
      2. Edit a page with the WYSIWYG editor.
      3. Insert the Include macro (Insert > Other Macros > Include).

      Actual results

      Everything in the dialog is in French – "Inclure", "(Obligatoire)", "Paramètres optionnels", "Envoyer" – except the heading of the required box, which reads Reference: the feature id declared by IncludeMacroParameters. On top of that, the box contains a single field, already labelled "Page", so the heading says nothing the user needs.

      Expected results

      The heading is translated. Better still, no heading at all when the box holds a single visible parameter, since that parameter already has its own label.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Lucas C Charpentier Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: