Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-4909

Localization of labels in GUI (formDefinition/formFieldGroup-name)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.8.1
    • Fix Version/s: 3.9
    • Component/s: GUI
    • Labels:
    • Environment:

      Testenvironment:
      Heap memory (used/committed/max) 721.1MB / 1.9GB / 1.9GB
      Non heap memory (used/committed/max) 231.6MB / 239.6MB / -1B
      Threads (live/peak/total) 45 / 45 / 52

    • Subscription:
      Active subscription
    • Git Revision:
      git-v3.8support-55-gfc813f1a7c

      Description

      Localization on custom Form only applies to "formField"-"display".
      If you try to localize any other element - it won't show the translation - only the key:

      ExampleCode Snipet:
      But for the Title and "SubTitles" it doesn't seem to work:

      In the xml its defined as follows:
      <formDefinition>
      <display xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:type="c:FormItemDisplayType">
      <label>UserType.custom.titlePreRegistration</label>
      </display>

      <formItems list="true">

      <formFieldGroup>
      <name>UserType.custom.titleCheckPreRegistration</name>
      <formItems list="true">
      <formField>
      <binding>
      <c:path>extension/avs13</c:path>
      </binding>
      <display xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:type="c:FormItemDisplayType">
      <label>UserType.custom.avs13</label>
      <minOccurs>1</minOccurs>
      </display>
      </formField>

      Attached a picture of the Results of the Code above.
      FormField are translated correct / rest is staying at "key"

        Attachments

          Activity

            People

            Assignee:
            pkuo Peter Kuonen
            Reporter:
            pkuo Peter Kuonen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: