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

Ability to translate validation error messages

XMLWordPrintable

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

      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. 

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

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