Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-3479

Language should not be added to checkbox label

    XMLWordPrintable

Details

    • Bug
    • Resolution: Inactive
    • Neutral
    • None
    • 5.3.9
    • None
    • None

    Description

      It happens while switching languages in dialogue. DefaultI18NAuthoringSupport.i18nize go inside CheckBoxField component and in block

      if (StringUtils.isNotBlank(currentCaption)) {
                                      if (formerLocale != null) {
                                          currentCaption = currentCaption.replace(String.format("(%s)", formerLocale.getLanguage()), "");
                                      }
                                      field.setCaption(String.format("%s (%s)", currentCaption, locale.getLanguage()));
                                  }
      

      it add language to CheckBox label (label right of the box).
      Possibly solution

      • do not add language if there wasn't before
      • check if formerLocale and locale.getLanguage() because inside component formerLocale is already changed to new value

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              efochr Evzen Fochr
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD