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

Ability to translate validation error messages

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 6.2.3
    • 6.2.1
    • None

    Description

      Currently validation error messages are returned directly from the error source, it is not possible to translate them.

      As customers want to translate the user interface, they also want these error messages to be translated.

      Here is the original request from the Suggestion Box ticket: 

      • Using TextField and the "type" property (e.g. Long)
        • - name: navSortOrder
        • class: info.magnolia.ui.form.field.definition.TextFieldDefinition
        • type: Long
      • Editor enters some invalid data like "aaa"
      • Error message "Could not convert value to Long" is shown
      • This error message cannot be translated

      There should be a way to change this error message.

        1. Dev note

      ConfiguredFieldValidatorDefinition - needs to be marked i18nable. Key should not be hardcoded. 

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                ajuran Antonín Juran
                czimmermann Christopher Zimmermann
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 2d 3h 44m
                      2d 3h 44m